Update modulehelp.php

if module is not loaded, or not found, the $objMod display is last $objMod loaded but not this id for display
This commit is contained in:
oscim 2019-10-29 10:39:15 +01:00 committed by GitHub
parent 7f1b67f0e4
commit eb73459899
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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++;