fixes #996 escape word "groups" in SQL queries, new reserved word with MySQL 8

This commit is contained in:
plegall
2019-06-28 18:07:53 +02:00
parent 0ef2193471
commit c1eecab364
12 changed files with 66 additions and 40 deletions
+1 -1
View File
@@ -192,7 +192,7 @@ $groups = array();
$query = '
SELECT id, name
FROM '.GROUPS_TABLE.'
FROM `'.GROUPS_TABLE.'`
ORDER BY name ASC
;';
$groups = simple_hash_from_query($query, 'id', 'name');