From eb73459899638df751943d7665c3974eb645dde8 Mon Sep 17 00:00:00 2001 From: oscim Date: Tue, 29 Oct 2019 10:39:15 +0100 Subject: [PATCH 1/2] 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++; From f0f61ff0fe5142ad37ce8256fb80b806fc7292ec Mon Sep 17 00:00:00 2001 From: stickler-ci Date: Tue, 29 Oct 2019 09:41:47 +0000 Subject: [PATCH 2/2] Fixing style errors. --- htdocs/admin/modulehelp.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/admin/modulehelp.php b/htdocs/admin/modulehelp.php index 6846d1a565a..0aafabb6c44 100644 --- a/htdocs/admin/modulehelp.php +++ b/htdocs/admin/modulehelp.php @@ -214,7 +214,7 @@ asort($orders); //var_dump($modules); -unset($objMod); +unset($objMod); $i=0; foreach($orders as $tmpkey => $tmpvalue) { @@ -224,7 +224,7 @@ foreach($orders as $tmpkey => $tmpvalue) $key = $i; $modName = $filename[$tmpkey]; $dirofmodule = $dirmod[$tmpkey]; - $objMod = $tmpMod; + $objMod = $tmpMod; break; } $i++;