From a4b0947729c9fc30ce99a93287f67d7e38b2041a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 7 Oct 2024 15:46:49 +0200 Subject: [PATCH] Fix phan --- htdocs/core/class/infobox.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/infobox.class.php b/htdocs/core/class/infobox.class.php index 76e090d884e..f52675fa219 100644 --- a/htdocs/core/class/infobox.class.php +++ b/htdocs/core/class/infobox.class.php @@ -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).'
';