issue #1309 keep themes_installed compatible with an old PHP5

This commit is contained in:
plegall
2021-08-16 15:49:37 +02:00
parent e82af26cbb
commit 249c34c658
+1 -1
View File
@@ -146,7 +146,7 @@ function cmp($a, $b)
if($a['STATE'] == $b['STATE'])
return strcasecmp($a['NAME'], $b['NAME']);
else
return $s[$a['STATE']] <=> $s[$b['STATE']];
return ($s[$a['STATE']] >= $s[$b['STATE']] ? 1 : 0);
}
usort($tpl_themes, 'cmp');