forked from science-ation/science-ation
remove pass by reference
This commit is contained in:
parent
3e3db6732d
commit
ef00c7d9f3
@ -255,7 +255,9 @@ function user_load($user, $uid = false)
|
||||
foreach($ret['types'] as $t) {
|
||||
/* These all pass $ret by reference, and can modify
|
||||
* $ret */
|
||||
$r = call_user_func("user_load_$t", &$ret);
|
||||
$fun="user_load_$t";
|
||||
$r=$fun($ret);
|
||||
// $r = call_user_func("user_load_$t", $ret);
|
||||
if($r != true) {
|
||||
echo "user_load_$t returned false!\n";
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user