We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 44160ed + 209303b commit ca3c0d0Copy full SHA for ca3c0d0
1 file changed
Sources/Search/APIs/Custom.php
@@ -464,6 +464,16 @@ public function postRemoved(int $id_msg): void
464
{
465
$customIndexSettings = Utils::jsonDecode(Config::$modSettings['search_custom_index_config'], true);
466
467
+ $row = Db::$db->query(
468
+ '',
469
+ 'SELECT body
470
+ FROM {db_prefix}messages
471
+ WHERE id_msg = {int:id_msg}',
472
+ [
473
+ 'id_msg' => $id_msg,
474
+ ],
475
+ )->fetch_assoc();
476
+
477
$words = self::getWordNumbers($row['body'], $customIndexSettings['bytes_per_word']);
478
479
if (!empty($words)) {
@@ -474,7 +484,7 @@ public function postRemoved(int $id_msg): void
484
AND id_msg = {int:id_msg}',
485
[
486
'word_list' => $words,
- 'id_msg' => $message,
487
488
],
489
);
480
490
}
0 commit comments