X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fprofilefields.inc.php;h=263fcb5176f5629431b184a47211f04aa68e7cb2;hb=abc8b908704ff4cf1afe51aef381557f678f7982;hp=ef574c018d5e1eeb9193fa8f512d71b841980906;hpb=07d0a10adbc2578f9b85875e551a03b99d3650e8;p=platal.git diff --git a/include/profilefields.inc.php b/include/profilefields.inc.php index ef574c0..263fcb5 100644 --- a/include/profilefields.inc.php +++ b/include/profilefields.inc.php @@ -875,7 +875,7 @@ class CompanyList static public function get($id) { - if (!array_key_exists($id, self::$companies)) { + if (!is_null($id) && !array_key_exists($id, self::$companies)) { self::preload(); } if (isset(self::$companies[$id])) {