projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove call-time pass-by-reference code which produces fatal error with PHP>=5.4
[platal.git]
/
include
/
profilefields.inc.php
diff --git
a/include/profilefields.inc.php
b/include/profilefields.inc.php
index
ef574c0
..
6c64ce9
100644
(file)
--- a/
include/profilefields.inc.php
+++ b/
include/profilefields.inc.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-201
1
Polytechnique.org *
+ * Copyright (C) 2003-201
3
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-875,7
+875,7
@@
class CompanyList
static public function get($id)
{
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])) {
self::preload();
}
if (isset(self::$companies[$id])) {