]> git.mxchange.org Git - friendica.git/blobdiff - include/api.php
Merge remote-tracking branch 'upstream/master'
[friendica.git] / include / api.php
index 3d8ecb35d30a9c8a8795c4e7e2f687e17805b196..9c3bb15244aa7d33366adffdf79b0a98805f1326 100644 (file)
@@ -74,7 +74,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');
                }
                }
                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"));
 
        }