keep compatibility with PHP 5 on this one

This commit is contained in:
plegall 2021-11-02 15:41:46 +01:00
parent 8578525809
commit 7417d974b0

View file

@ -562,7 +562,11 @@ SELECT
//Multidimentionnal sorting //Multidimentionnal sorting
usort($filterable_users, function ($a, $b) 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; // return $output_lines;