From: fabrixxm Date: Thu, 2 Jan 2014 18:12:26 +0000 (+0100) Subject: api: fix call-time pass-by-reference error X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=68030a79cdc2ac23b068aab1087792e7871ad016;p=friendica.git api: fix call-time pass-by-reference error --- diff --git a/include/api.php b/include/api.php index d214287313..fd65ee2ad6 100644 --- a/include/api.php +++ b/include/api.php @@ -76,7 +76,7 @@ logger('API_login: ' . print_r($_SERVER,true), LOGGER_DEBUG); header('WWW-Authenticate: Basic realm="Friendica"'); header('HTTP/1.0 401 Unauthorized'); - die((api_error(&$a, 'json', "This api requires login"))); + die((api_error($a, 'json', "This api requires login"))); //die('This api requires login'); } @@ -176,7 +176,7 @@ } header("HTTP/1.1 404 Not Found"); logger('API call not implemented: '.$a->query_string." - ".print_r($_REQUEST,true)); - return(api_error(&$a, $type, "not implemented")); + return(api_error($a, $type, "not implemented")); }