From 8654c3fa625a13b16ec403b4ac26dabd761b97da Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Mon, 20 Dec 2010 18:42:07 +0100 Subject: [PATCH] Prevents warning. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- include/profilefields.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } } -- 2.1.4