Skip to content

Commit a0b7902

Browse files
authored
Fix SQL Error In Finder (#44778)
1 parent 21a85ba commit a0b7902

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

administrator/components/com_finder/src/Indexer/Taxonomy.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ public static function removeOrphanNodes()
433433
->where($db->quoteName('t.parent_id') . ' > 1 ')
434434
->where('t.lft + 1 = t.rgt')
435435
->where($db->quoteName('m.link_id') . ' IS NULL');
436-
$query2->delete($db->quoteName('#__finder_taxonomy', 't'));
436+
$query2->delete($db->quoteName('#__finder_taxonomy'));
437437

438438
do {
439439
$db->setQuery($query);
@@ -443,7 +443,7 @@ public static function removeOrphanNodes()
443443
break;
444444
}
445445

446-
$query2->clear('where')->where($db->quoteName('t.id') . ' IN (' . implode(',', $nodes) . ')');
446+
$query2->clear('where')->whereIn($db->quoteName('id'), $nodes);
447447
$db->setQuery($query2);
448448
$db->execute();
449449
$affectedRows += $db->getAffectedRows();

0 commit comments

Comments
 (0)