mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-08 09:43:01 +02:00
issue #1309 compatibility PHP 8
This commit is contained in:
@@ -146,7 +146,7 @@ function cmp($a, $b)
|
||||
if($a['STATE'] == $b['STATE'])
|
||||
return strcasecmp($a['NAME'], $b['NAME']);
|
||||
else
|
||||
return $s[$a['STATE']] >= $s[$b['STATE']];
|
||||
return $s[$a['STATE']] <=> $s[$b['STATE']];
|
||||
}
|
||||
usort($tpl_themes, 'cmp');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user