mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-06 16:53:34 +02:00
bug 3065 fixed: avoid SQL errors with external authentication
git-svn-id: http://piwigo.org/svn/branches/2.6@27996 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -394,7 +394,7 @@ $toggle_is_default_url = $admin_url.'group_list&toggle_is_default=';
|
||||
while ($row = pwg_db_fetch_assoc($result))
|
||||
{
|
||||
$query = '
|
||||
SELECT username
|
||||
SELECT u.'. $conf['user_fields']['username'].' AS username
|
||||
FROM '.USERS_TABLE.' AS u
|
||||
INNER JOIN '.USER_GROUP_TABLE.' AS ug
|
||||
ON u.'.$conf['user_fields']['id'].' = ug.user_id
|
||||
|
||||
Reference in New Issue
Block a user