Просмотр исходного кода

Fix undefined conf (#2163)

Small fix for https://github.com/FreshRSS/FreshRSS/pull/2137
Alexandre Alapetite 7 лет назад
Родитель
Сommit
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()) {