From eb73459899638df751943d7665c3974eb645dde8 Mon Sep 17 00:00:00 2001 From: oscim Date: Tue, 29 Oct 2019 10:39:15 +0100 Subject: [PATCH] Update modulehelp.php if module is not loaded, or not found, the $objMod display is last $objMod loaded but not this id for display --- htdocs/admin/modulehelp.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/admin/modulehelp.php b/htdocs/admin/modulehelp.php index de9d1677932..6846d1a565a 100644 --- a/htdocs/admin/modulehelp.php +++ b/htdocs/admin/modulehelp.php @@ -214,15 +214,17 @@ asort($orders); //var_dump($modules); +unset($objMod); $i=0; foreach($orders as $tmpkey => $tmpvalue) { - $objMod = $modules[$tmpkey]; - if ($objMod->numero == $id) + $tmpMod = $modules[$tmpkey]; + if ($tmpMod->numero == $id) { $key = $i; $modName = $filename[$tmpkey]; $dirofmodule = $dirmod[$tmpkey]; + $objMod = $tmpMod; break; } $i++;