Escape rank column name as rank

Reported in
https://piwigo.org/forum/viewtopic.php?pid=181750#p181750
This commit is contained in:
Eike Rathke
2021-10-22 16:57:14 +02:00
committed by Pierrick Le Gall
parent 25f70443e8
commit a36a84fef6
+1 -1
View File
@@ -131,7 +131,7 @@ $template->assign('delay_before_autoOpen', $conf['album_move_delay_before_auto_o
//Get all albums
$query = '
SELECT id,name,rank,status, uppercats
SELECT id,name,`rank`,status, uppercats
FROM '.CATEGORIES_TABLE.'
;';