fixed PHP 7.2 warning
This commit is contained in:
parent
1f23b0314b
commit
36c731e092
|
@ -222,7 +222,7 @@ $_SESSION['profile_types'] = parseHtml(null, $container, $old_options, false, $t
|
||||||
// display module options
|
// display module options
|
||||||
foreach ($options as $moduleName => $moduleOptions) {
|
foreach ($options as $moduleName => $moduleOptions) {
|
||||||
// ignore modules without options
|
// ignore modules without options
|
||||||
if (sizeof($moduleOptions) < 1) {
|
if (empty($moduleOptions)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$module = new $moduleName($type->getScope());
|
$module = new $moduleName($type->getScope());
|
||||||
|
|
Loading…
Reference in New Issue