From 36c731e092e75e6924d641a5ca55f29e81c81bd4 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 30 Jun 2018 09:16:43 +0200 Subject: [PATCH] fixed PHP 7.2 warning --- lam/templates/profedit/profilepage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lam/templates/profedit/profilepage.php b/lam/templates/profedit/profilepage.php index 14c6cd9f..670adc41 100644 --- a/lam/templates/profedit/profilepage.php +++ b/lam/templates/profedit/profilepage.php @@ -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());