瀏覽代碼

Fix undefined conf (#2163)

Small fix for https://github.com/FreshRSS/FreshRSS/pull/2137
Alexandre Alapetite 7 年之前
父節點
當前提交
2f70da06e6
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/Models/Auth.php

+ 1 - 0
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()) {