This commit is contained in:
Laurent Destailleur 2024-10-07 15:46:49 +02:00
parent 13af557597
commit a4b0947729

View file

@ -180,7 +180,7 @@ class InfoBox
$tmpenabled = 0; // $tmpenabled is used for the '|' test (OR)
foreach ($arrayelem as $module) {
$tmpmodule = preg_replace('/@[^@]+/', '', $module);
if (isModEnabled($tmpmodule)) {
if (!empty($tmpmodule) && isModEnabled($tmpmodule)) {
$tmpenabled = 1;
}
//print $boxname.'-'.$module.'-module enabled='.(empty($conf->$tmpmodule->enabled)?0:1).'<br>';