From: Stéphane Jacob Date: Mon, 20 Dec 2010 17:42:07 +0000 (+0100) Subject: Prevents warning. X-Git-Tag: xorg/1.0.2~67 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=8654c3fa625a13b16ec403b4ac26dabd761b97da;p=platal.git Prevents warning. Signed-off-by: Stéphane Jacob --- diff --git a/include/profilefields.inc.php b/include/profilefields.inc.php index 056b01b..968c416 100644 --- a/include/profilefields.inc.php +++ b/include/profilefields.inc.php @@ -770,7 +770,10 @@ class CompanyList if (!array_key_exists($id, self::$companies)) { self::preload(); } - return self::$companies[$id]; + if (isset(self::$companies[$id])) { + return self::$companies[$id]; + } + return null; } }