mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 11:19:55 +03:00
fixes #596, compatibility with PHP 7.1
This commit is contained in:
parent
63932b9390
commit
8a57d777aa
1 changed files with 1 additions and 1 deletions
|
@ -1788,7 +1788,7 @@ class ScriptLoader
|
|||
*/
|
||||
private static function cmp_by_mode_and_order($s1, $s2)
|
||||
{
|
||||
$ret = $s1->load_mode - $s2->load_mode;
|
||||
$ret = intval($s1->load_mode) - intval($s2->load_mode);
|
||||
if ($ret) return $ret;
|
||||
|
||||
$ret = $s1->extra['order'] - $s2->extra['order'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue