Skip to content

Commit 7d96f61

Browse files
committed
Fix short array
1 parent 45197a1 commit 7d96f61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

featherbb/Core/Search.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ public function stripSearchIndex($postIds)
301301
->findMany();
302302

303303
if ($result) {
304-
$wordIds = '';
304+
$wordIds = [];
305305
foreach ($result as $row) {
306306
$wordIds[] = $row['word_id'];
307307
}
@@ -313,7 +313,7 @@ public function stripSearchIndex($postIds)
313313
->findMany();
314314

315315
if ($result) {
316-
$wordIds = '';
316+
$wordIds = [];
317317
foreach ($result as $row) {
318318
$wordIds[] = $row['word_id'];
319319
}

0 commit comments

Comments
 (0)