2
0
forked from Wavyzz/dolibarr

Fix: Removed warnings

This commit is contained in:
Laurent Destailleur
2013-04-26 19:13:39 +02:00
parent 4c1f301f4e
commit 2a74cb81f0
9 changed files with 73 additions and 58 deletions

View File

@@ -297,7 +297,11 @@ if (! empty($_SESSION["disablemodules"]))
$disabled_modules=explode(',',$_SESSION["disablemodules"]);
foreach($disabled_modules as $module)
{
if ($module) $conf->$module->enabled=false;
if ($module)
{
if (empty($conf->$module)) $conf->$module=new stdClass();
$conf->$module->enabled=false;
}
}
}