mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-01 20:04:51 +02:00
fixes #996 escape word "groups" in SQL queries, new reserved word with MySQL 8
This commit is contained in:
+1
-1
@@ -31,7 +31,7 @@ $groups = array();
|
||||
|
||||
$query = '
|
||||
SELECT id, name
|
||||
FROM '.GROUPS_TABLE.'
|
||||
FROM `'.GROUPS_TABLE.'`
|
||||
ORDER BY name ASC
|
||||
;';
|
||||
$result = pwg_query($query);
|
||||
|
||||
Reference in New Issue
Block a user