From 8a57d777aa3b6401d74817822e0988fc4eb4a679 Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 27 Feb 2018 12:01:45 +0100 Subject: [PATCH] fixes #596, compatibility with PHP 7.1 --- include/template.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/template.class.php b/include/template.class.php index b8846a561..d8d241aac 100644 --- a/include/template.class.php +++ b/include/template.class.php @@ -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'];