]> git.mxchange.org Git - friendica.git/commitdiff
Fix Config::get call
authorSandro Santilli <strk@kbt.io>
Fri, 21 Apr 2017 15:36:45 +0000 (17:36 +0200)
committerSandro Santilli <strk@kbt.io>
Fri, 21 Apr 2017 15:36:45 +0000 (17:36 +0200)
include/auth.php

index d819a636b0876d7fb99f7322eb519eb125d1c29e..c1a6120dbbcf6258e66458b2950ef5bb63c29724 100644 (file)
@@ -24,7 +24,7 @@ if (isset($_COOKIE["Friendica"])) {
                        // Renew the cookie
                        // Expires after 7 days by default,
                        // can be set via system.auth_cookie_lifetime
-                       $authcookiedays = Config::get('system', 'auth_cookie_lifetime') || 7;
+                       $authcookiedays = Config::get('system', 'auth_cookie_lifetime', 7);
                        new_cookie($authcookiedays*24*60*60, $r[0]);
 
                        // Do the authentification if not done by now