mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-04-30 18:42:43 +02:00
fixes #1900 recent version of PHP seems to prefer -1 over 0 on compare function for sorting
This commit is contained in:
@@ -151,7 +151,7 @@ function cmp($a, $b)
|
||||
if($a['STATE'] == $b['STATE'])
|
||||
return strcasecmp($a['NAME'], $b['NAME']);
|
||||
else
|
||||
return ($s[$a['STATE']] >= $s[$b['STATE']] ? 1 : 0);
|
||||
return ($s[$a['STATE']] >= $s[$b['STATE']] ? 1 : -1);
|
||||
}
|
||||
usort($tpl_themes, 'cmp');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user