mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
fixes #674, by default user groups should be an empty array, not an empty string
This commit is contained in:
@@ -149,11 +149,6 @@ SELECT DISTINCT ';
|
||||
else $first = false;
|
||||
$query.= $field .' AS '. $name;
|
||||
}
|
||||
if (isset($params['display']['groups']))
|
||||
{
|
||||
if (!$first) $query.= ', ';
|
||||
$query.= '"" AS groups';
|
||||
}
|
||||
|
||||
if (isset($display['ui.last_visit']))
|
||||
{
|
||||
@@ -179,6 +174,10 @@ SELECT DISTINCT ';
|
||||
while ($row = pwg_db_fetch_assoc($result))
|
||||
{
|
||||
$row['id'] = intval($row['id']);
|
||||
if (isset($params['display']['groups']))
|
||||
{
|
||||
$row['groups'] = array(); // will be filled later
|
||||
}
|
||||
$users[ $row['id'] ] = $row;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user