From a6c62872886f1f08b26ce3e89e3dfd9088c1cc25 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Fri, 21 Apr 2017 17:36:45 +0200 Subject: [PATCH] Fix Config::get call --- include/auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/auth.php b/include/auth.php index d819a636b0..c1a6120dbb 100644 --- a/include/auth.php +++ b/include/auth.php @@ -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