From 56070c7ee3eb2e224ef05114c0613ba129eefa15 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 28 Sep 2010 20:40:10 +0000 Subject: [PATCH] Fix: Syntax error --- htdocs/main.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 0226a1d967c..38101f5b8c7 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -238,7 +238,7 @@ if (! empty($_SESSION["disablemodules"])) $disabled_modules=explode(',',$_SESSION["disablemodules"]); 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)) { include_once(DOL_DOCUMENT_ROOT."/core/class/smartphone.class.php"); - + $smartphone = new Smartphone($db); $smartphone->phone = $conf->browser->phone; }