fixed call-time pass-by-reference

This commit is contained in:
Sampiero 2013-05-09 01:04:58 +02:00
parent 55527aaf48
commit 47f9d0f53b

View File

@ -52,8 +52,17 @@ function pAppendSites($parentId, $viewall, $sublevel, &$aItems)
{
$r['sublevel'] = $sublevel;
$aItems[] = $r;
pAppendSites($r['id'], $viewall, $sublevel+1, &$aItems);
/*
* pAppendSites($r['id'], $viewall, $sublevel+1, &$aItems);
*
* http://www.php.net/manual/en/language.references.pass.php
* As of PHP 5.3.0, you will get a warning saying that "call-time pass-by-reference" is deprecated when you use & in foo(&$a);.
* And as of PHP 5.4.0, call-time pass-by-reference was removed, so using it will raise a fatal error.
*
*/
pAppendSites($r['id'], $viewall, $sublevel+1, $aItems);
}
sql_free_result($rs);
}
?>
?>