Remove the "call by reference"
This commit is contained in:
parent
444de52859
commit
585c2119d7
1 changed files with 2 additions and 1 deletions
|
@ -194,6 +194,7 @@ function poco_load_worker($cid, $uid, $zcid, $url) {
|
||||||
* @brief Sanitize the given gcontact data
|
* @brief Sanitize the given gcontact data
|
||||||
*
|
*
|
||||||
* @param array $gcontact array with gcontact data
|
* @param array $gcontact array with gcontact data
|
||||||
|
* @throw Exception
|
||||||
*
|
*
|
||||||
* Generation:
|
* Generation:
|
||||||
* 0: No definition
|
* 0: No definition
|
||||||
|
@ -203,7 +204,7 @@ function poco_load_worker($cid, $uid, $zcid, $url) {
|
||||||
* 4: ...
|
* 4: ...
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function sanitize_gcontact(&$gcontact) {
|
function sanitize_gcontact($gcontact) {
|
||||||
|
|
||||||
if ($gcontact['url'] == "") {
|
if ($gcontact['url'] == "") {
|
||||||
throw new Exception('URL is empty');
|
throw new Exception('URL is empty');
|
||||||
|
|
Loading…
Reference in a new issue