mirror of
https://github.com/e107inc/e107.git
synced 2025-09-01 02:21:58 +02:00
PHP8 Compatibility and code cleanup.
This commit is contained in:
@@ -183,7 +183,10 @@ class listclass
|
||||
}
|
||||
}
|
||||
//sort array on order values set in preferences
|
||||
usort($arr, create_function('$e,$f','return $e["order"]==$f["order"]?0:($e["order"]>$f["order"]?1:-1);'));
|
||||
usort($arr, function($e, $f)
|
||||
{
|
||||
return $e["order"]==$f["order"] ? 0 : ($e["order"] > $f["order"] ? 1 : -1);
|
||||
});
|
||||
|
||||
return $arr;
|
||||
}
|
||||
|
Reference in New Issue
Block a user