projects
/
platal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b73003
)
Prevents warning.
author
Stéphane Jacob
<sj@m4x.org>
Mon, 20 Dec 2010 17:42:07 +0000
(18:42 +0100)
committer
Stéphane Jacob
<sj@m4x.org>
Mon, 20 Dec 2010 17:47:34 +0000
(18:47 +0100)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
include/profilefields.inc.php
patch
|
blob
|
blame
|
history
diff --git
a/include/profilefields.inc.php
b/include/profilefields.inc.php
index
056b01b
..
968c416
100644
(file)
--- 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;
}
}