mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
fixes #2034 protect reserved word in MySQL 8
This commit is contained in:
@@ -405,7 +405,7 @@ switch ($page['section'])
|
|||||||
SELECT
|
SELECT
|
||||||
id,
|
id,
|
||||||
name
|
name
|
||||||
FROM '.GROUPS_TABLE.'
|
FROM `'.GROUPS_TABLE.'`
|
||||||
;';
|
;';
|
||||||
$groups = query2array($query, 'id', 'name');
|
$groups = query2array($query, 'id', 'name');
|
||||||
natcasesort($groups);
|
natcasesort($groups);
|
||||||
|
|||||||
Reference in New Issue
Block a user