X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fprofilefields.inc.php;h=263fcb5176f5629431b184a47211f04aa68e7cb2;hb=5f9ad38e8805cd275f2943494b8b692601a39c9c;hp=ef574c018d5e1eeb9193fa8f512d71b841980906;hpb=5289c142e04219cb8e846c86ccd9f5005d7d49e1;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])) {