]> git.mxchange.org Git - friendica.git/commitdiff
api: fix call-time pass-by-reference error
authorfabrixxm <fabrix.xm@gmail.com>
Thu, 2 Jan 2014 18:12:26 +0000 (19:12 +0100)
committerfabrixxm <fabrix.xm@gmail.com>
Thu, 2 Jan 2014 18:12:26 +0000 (19:12 +0100)
include/api.php

index d214287313c0746ef58644eebddb6304f5d96728..fd65ee2ad62e4dc0789f087e8adb4532cbb23dd9 100644 (file)
@@ -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');
                }
                }
                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"));
 
        }