From 1de27871b3d859e4c1c0abdafb963684b0b02dea Mon Sep 17 00:00:00 2001 From: Linty Date: Tue, 3 Sep 2024 16:02:16 +0200 Subject: [PATCH] fixes #2221 encase rank in quotes --- include/ws_functions/pwg.categories.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ws_functions/pwg.categories.php b/include/ws_functions/pwg.categories.php index 70e226e5b..077021357 100644 --- a/include/ws_functions/pwg.categories.php +++ b/include/ws_functions/pwg.categories.php @@ -322,7 +322,7 @@ SELECT SQL_CALC_FOUND_ROWS if (isset($params['limit'])) { $query .= ' - ORDER BY rank ASC + ORDER BY \'rank\' ASC LIMIT '.($params['limit'] + ($params['cat_id'] > 0 ? 1 : 0)); }