api: fix call-time pass-by-reference error

This commit is contained in:
fabrixxm 2014-01-02 19:12:26 +01:00
parent a5aa4bfbde
commit 68030a79cd

View File

@ -76,7 +76,7 @@
logger('API_login: ' . print_r($_SERVER,true), LOGGER_DEBUG); logger('API_login: ' . print_r($_SERVER,true), LOGGER_DEBUG);
header('WWW-Authenticate: Basic realm="Friendica"'); header('WWW-Authenticate: Basic realm="Friendica"');
header('HTTP/1.0 401 Unauthorized'); 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'); //die('This api requires login');
} }
@ -176,7 +176,7 @@
} }
header("HTTP/1.1 404 Not Found"); header("HTTP/1.1 404 Not Found");
logger('API call not implemented: '.$a->query_string." - ".print_r($_REQUEST,true)); 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"));
} }