From 585c2119d7d0d6f9db5a8d0a5dee5521144e9d48 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 25 Mar 2017 18:00:56 +0000 Subject: [PATCH] Remove the "call by reference" --- include/socgraph.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/socgraph.php b/include/socgraph.php index f576798fc7..642d03d891 100644 --- a/include/socgraph.php +++ b/include/socgraph.php @@ -194,6 +194,7 @@ function poco_load_worker($cid, $uid, $zcid, $url) { * @brief Sanitize the given gcontact data * * @param array $gcontact array with gcontact data + * @throw Exception * * Generation: * 0: No definition @@ -203,7 +204,7 @@ function poco_load_worker($cid, $uid, $zcid, $url) { * 4: ... * */ -function sanitize_gcontact(&$gcontact) { +function sanitize_gcontact($gcontact) { if ($gcontact['url'] == "") { throw new Exception('URL is empty');