Ajout d'un test si le nom du module n'est pas dfinit
This commit is contained in:
parent
a8e7eb48dc
commit
9031111e78
@ -102,10 +102,13 @@ if ($action == 'set')
|
||||
$modules[$value][2] = 1;
|
||||
|
||||
$modName = $modules[$value][4];
|
||||
$file = $modName . ".class.php";
|
||||
include("../includes/modules/$file");
|
||||
$objMod = new $modName($db);
|
||||
$objMod->init();
|
||||
if ($modName)
|
||||
{
|
||||
$file = $modName . ".class.php";
|
||||
include("../includes/modules/$file");
|
||||
$objMod = new $modName($db);
|
||||
$objMod->init();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user