]> git.mxchange.org Git - friendica.git/blobdiff - include/oauth.php
Degrade priority step by step
[friendica.git] / include / oauth.php
index 9fb15b492af366cb4bef9cf31bc142ebe87feb63..9e2be68c776cc61e57f8dbc531fcdd404438c449 100644 (file)
@@ -5,6 +5,8 @@
  *
  */
 
+use Friendica\App;
+
 define('REQUEST_TOKEN_DURATION', 300);
 define('ACCESS_TOKEN_DURATION', 31536000);
 
@@ -155,7 +157,7 @@ class FKOAuth1 extends OAuthServer {
                //notice( t("Welcome back ") . $record['username'] . EOL);
                $a->user = $record;
 
-               if(strlen($a->user['timezone'])) {
+               if (strlen($a->user['timezone'])) {
                        date_default_timezone_set($a->user['timezone']);
                        $a->timezone = $a->user['timezone'];
                }