mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-01 20:04:51 +02:00
fixes #1291 change syntax to keep compatibility with PHP 5.3 (for now)
This commit is contained in:
@@ -605,7 +605,7 @@ foreach ($filter_sets as $set)
|
|||||||
{
|
{
|
||||||
$current_set = array_intersect($current_set, $set);
|
$current_set = array_intersect($current_set, $set);
|
||||||
}
|
}
|
||||||
$page['cat_elements_id'] = empty($current_set) ? [] : $current_set;
|
$page['cat_elements_id'] = empty($current_set) ? array() : $current_set;
|
||||||
|
|
||||||
|
|
||||||
// +-----------------------------------------------------------------------+
|
// +-----------------------------------------------------------------------+
|
||||||
|
|||||||
+1
-1
@@ -212,7 +212,7 @@ ORDER BY
|
|||||||
month DESC
|
month DESC
|
||||||
;';
|
;';
|
||||||
|
|
||||||
$result['avg'] = query2array($query)[0]['AVG(nb_pages)'];
|
list($result['avg']) = pwg_db_fetch_row(pwg_query($query));
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user