fixes #1616 handle backticked rank column in conf.order_by setting

This commit is contained in:
plegall
2022-02-25 14:22:39 +01:00
parent 84a7845dbd
commit 78e9d516b1
2 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -178,7 +178,7 @@ if (isset($_POST['submit']))
$order_by = $order_by_inside_category = array_slice($_POST['order_by'], 0, ceil(count($sort_fields)/2));
// there is no rank outside categories
if ( ($i = array_search('rank ASC', $order_by)) !== false)
if ( ($i = array_search('`rank` ASC', $order_by)) !== false)
{
unset($order_by[$i]);
}