mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-08 01:32:59 +02:00
keep compatibility with PHP 5 on this one
This commit is contained in:
@@ -562,7 +562,11 @@ SELECT
|
||||
//Multidimentionnal sorting
|
||||
usort($filterable_users, function ($a, $b)
|
||||
{
|
||||
return strtolower($a['username']) <=> strtolower($b['username']);
|
||||
// compatible with PHP 7+ only
|
||||
// return strtolower($a['username']) <=> strtolower($b['username']);
|
||||
|
||||
// still compatible with PHP 5
|
||||
return (strtolower($a['username']) >= strtolower($b['username']) ? 1 : 0);
|
||||
});
|
||||
|
||||
// return $output_lines;
|
||||
|
||||
Reference in New Issue
Block a user