mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-06 16:53:34 +02: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;
|
else $first = false;
|
||||||
$query.= $field .' AS '. $name;
|
$query.= $field .' AS '. $name;
|
||||||
}
|
}
|
||||||
if (isset($params['display']['groups']))
|
|
||||||
{
|
|
||||||
if (!$first) $query.= ', ';
|
|
||||||
$query.= '"" AS groups';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isset($display['ui.last_visit']))
|
if (isset($display['ui.last_visit']))
|
||||||
{
|
{
|
||||||
@@ -179,6 +174,10 @@ SELECT DISTINCT ';
|
|||||||
while ($row = pwg_db_fetch_assoc($result))
|
while ($row = pwg_db_fetch_assoc($result))
|
||||||
{
|
{
|
||||||
$row['id'] = intval($row['id']);
|
$row['id'] = intval($row['id']);
|
||||||
|
if (isset($params['display']['groups']))
|
||||||
|
{
|
||||||
|
$row['groups'] = array(); // will be filled later
|
||||||
|
}
|
||||||
$users[ $row['id'] ] = $row;
|
$users[ $row['id'] ] = $row;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user