Skip to content

Commit

Permalink
[K6.3] categorymodel in backend on query add quotename on keys
Browse files Browse the repository at this point in the history
  • Loading branch information
xillibit committed Oct 22, 2023
1 parent ef0d777 commit 52f14a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/admin/src/Model/CategoryModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ public function getAdminCategory()
$query = $db->getQuery(true)
->select('a.id, a.name')
->from("{$db->quoteName('#__kunena_categories')} AS a")
->where("parentid={$db->quote('0')}")
->where("id!={$db->quote($category->id)}")
->where($db->quoteName('parentid') . '=' . $db->quote('0'))
->where($db->quoteName('id') . '!=' . $db->quote($category->id))
->order('ordering');

$db->setQuery($query);
Expand Down

0 comments on commit 52f14a9

Please sign in to comment.