Fix: Syntax error

This commit is contained in:
Laurent Destailleur 2010-09-28 20:40:10 +00:00
parent 3f35b00d51
commit 56070c7ee3

View File

@ -238,7 +238,7 @@ if (! empty($_SESSION["disablemodules"]))
$disabled_modules=explode(',',$_SESSION["disablemodules"]); $disabled_modules=explode(',',$_SESSION["disablemodules"]);
foreach($disabled_modules as $module) foreach($disabled_modules as $module)
{ {
$conf->$module->enabled=false; if ($module) $conf->$module->enabled=false;
} }
} }
@ -271,7 +271,7 @@ if (sizeof($conf->need_smarty) > 0)
if (isset($conf->browser->phone)) if (isset($conf->browser->phone))
{ {
include_once(DOL_DOCUMENT_ROOT."/core/class/smartphone.class.php"); include_once(DOL_DOCUMENT_ROOT."/core/class/smartphone.class.php");
$smartphone = new Smartphone($db); $smartphone = new Smartphone($db);
$smartphone->phone = $conf->browser->phone; $smartphone->phone = $conf->browser->phone;
} }