Skip to content

A free, self-hostable news aggregator…

Fix undefined conf (#2163)

Alexandre Alapetite2f70da06e6c1
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()) {