From eb964e6436e8b279168bdf0dd44a1f5215f0a511 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 17 Sep 2012 22:08:41 +0200 Subject: [PATCH] Fix: Should works for everybody like that --- htdocs/user/index.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/htdocs/user/index.php b/htdocs/user/index.php index 9ac5afd50aa..f63156c6ce6 100644 --- a/htdocs/user/index.php +++ b/htdocs/user/index.php @@ -140,9 +140,11 @@ if ($result) else { // $mc is defined in conf.class.php if multicompany enabled. - // remove constante MAIN_MODULE_MULTICOMPANY if you have an error. - $mc->getInfo($obj->entity); - print $mc->label; + if (is_object($mc)) + { + $mc->getInfo($obj->entity); + print $mc->label; + } } } else if ($obj->ldap_sid)