Bug fixes on statistic page

* Statistic page is now more clean with 0 or 1 values (for new Piwigos)
 * Rectification of a mistake in functions_mysqli.inc.php (replace 'groups' by 'rank')
This commit is contained in:
Zacharie
2020-06-17 14:31:15 +02:00
parent 2e70ebf777
commit fd8394df07
3 changed files with 94 additions and 47 deletions
+2 -2
View File
@@ -140,9 +140,9 @@ function pwg_query($query)
if (preg_match('/\bgroups\b/', $query))
{
// first we unescape what's already escaped (to avoid double escaping)
$query = preg_replace('/`groups`/', 'rank', $query);
$query = preg_replace('/`groups`/', 'groups', $query);
// then we escape the keyword
$query = preg_replace('/\bgroups\b/', '`rank`', $query);
$query = preg_replace('/\bgroups\b/', '`groups`', $query);
}
$start = microtime(true);