PHP 7.2 compatibility

This commit is contained in:
Roland Gruber 2018-04-30 19:32:47 +02:00
parent 632d3a26bd
commit 735a7d3554
1 changed files with 3 additions and 1 deletions

View File

@ -148,7 +148,9 @@ $tabindex = 1;
$modules = array_keys($options);
$_SESSION['conf_types'] = array();
for ($i = 0; $i < sizeof($modules); $i++) {
if (sizeof($options[$modules[$i]]) < 1) continue;
if (empty($options[$modules[$i]])) {
continue;
}
$module = moduleCache::getModule($modules[$i], 'none');
$iconImage = $module->getIcon();
if ($iconImage != null) {