mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 01:03:31 +02:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user