]> git.mxchange.org Git - friendica.git/blobdiff - mod/api.php
Also reverted these + added spaces for nicer appearance.
[friendica.git] / mod / api.php
index e3b5ea3a929e76ff77a687adcad1fbb39a40b7b7..406ef26c1c76adf22993b14e27da1badd1c87bb8 100644 (file)
@@ -14,7 +14,7 @@ function oauth_get_client($request){
                        AND `tokens`.`id`='%s' AND `tokens`.`scope`='request'",
                        dbesc($token));
 
-       if (!count($r))
+       if (!dbm::is_result($r))
                return null;
 
        return $r[0];
@@ -85,7 +85,7 @@ function api_content(&$a) {
 
 
                if(! local_user()) {
-                       //TODO: we need login form to redirect to this page
+                       /// @TODO We need login form to redirect to this page
                        notice( t('Please login to continue.') . EOL );
                        return login(false,$request->get_parameters());
                }