mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-10 02:33:02 +02:00
fixes #996 escape word "groups" in SQL queries, new reserved word with MySQL 8
This commit is contained in:
@@ -598,7 +598,7 @@ DELETE
|
||||
$query = '
|
||||
SELECT
|
||||
id
|
||||
FROM '.GROUPS_TABLE.'
|
||||
FROM `'.GROUPS_TABLE.'`
|
||||
WHERE id IN ('.implode(',', $params['group_id']).')
|
||||
;';
|
||||
$group_ids = array_from_query($query, 'id');
|
||||
|
||||
Reference in New Issue
Block a user