fixes #1291 change syntax to keep compatibility with PHP 5.3 (for now)

This commit is contained in:
plegall
2021-01-21 11:01:18 +01:00
parent ab81e7707f
commit 6704632263
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -212,7 +212,7 @@ ORDER BY
month DESC
;';
$result['avg'] = query2array($query)[0]['AVG(nb_pages)'];
list($result['avg']) = pwg_db_fetch_row(pwg_query($query));
return $result;
}