remove pass by reference

This commit is contained in:
james 2018-10-30 17:28:44 +00:00
parent 3e3db6732d
commit ef00c7d9f3

View File

@ -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;