fixed PHP 7.2 warning

This commit is contained in:
Roland Gruber 2018-06-30 09:16:43 +02:00
parent 1f23b0314b
commit 36c731e092
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ $_SESSION['profile_types'] = parseHtml(null, $container, $old_options, false, $t
// display module options
foreach ($options as $moduleName => $moduleOptions) {
// ignore modules without options
if (sizeof($moduleOptions) < 1) {
if (empty($moduleOptions)) {
continue;
}
$module = new $moduleName($type->getScope());