Fix Config::get call
This commit is contained in:
parent
24c023eb0e
commit
a6c6287288
|
@ -24,7 +24,7 @@ if (isset($_COOKIE["Friendica"])) {
|
||||||
// Renew the cookie
|
// Renew the cookie
|
||||||
// Expires after 7 days by default,
|
// Expires after 7 days by default,
|
||||||
// can be set via system.auth_cookie_lifetime
|
// 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]);
|
new_cookie($authcookiedays*24*60*60, $r[0]);
|
||||||
|
|
||||||
// Do the authentification if not done by now
|
// Do the authentification if not done by now
|
||||||
|
|
Loading…
Reference in a new issue