diff options
| author | 2018-12-04 21:26:10 +0100 | |
|---|---|---|
| committer | 2018-12-04 21:26:10 +0100 | |
| commit | 2f70da06e6c19bef383e5011e6300eef7a8257cb (patch) | |
| tree | 72d843e26ae088826a3ed096838c810a9f25cb8f /app/Models/Auth.php | |
| parent | 8bbf567fde704619ce98598593cff2a486f231ba (diff) | |
Fix undefined conf (#2163)
Small fix for https://github.com/FreshRSS/FreshRSS/pull/2137
Diffstat (limited to 'app/Models/Auth.php')
| -rw-r--r-- | app/Models/Auth.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/Models/Auth.php b/app/Models/Auth.php index d1e26b8e8..9c3e31952 100644 --- a/app/Models/Auth.php +++ b/app/Models/Auth.php @@ -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()) { |
