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'];