mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 19:29:58 +03:00
keep compatibility with PHP 5 on this one
This commit is contained in:
parent
8578525809
commit
7417d974b0
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue