Fix undefined conf (#2163)

Small fix for https://github.com/FreshRSS/FreshRSS/pull/2137
This commit is contained in:
Alexandre Alapetite
2018-12-04 21:26:10 +01:00
committed by GitHub
parent 8bbf567fde
commit 2f70da06e6

View File

@@ -233,6 +233,7 @@ class FreshRSS_FormAuth {
$token_file = DATA_PATH . '/tokens/' . $token . '.txt';
$mtime = @filemtime($token_file);
$conf = Minz_Configuration::get('system');
$limits = $conf->limits;
$cookie_duration = empty($limits['cookie_duration']) ? 2592000 : $limits['cookie_duration'];
if ($mtime + $cookie_duration < time()) {