summaryrefslogtreecommitdiff
path: root/app/Controllers/userController.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-10-29 00:45:42 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-10-29 00:45:42 +0100
commit9f97f7df8822ed2f32a9bc9d46ece92dee93089c (patch)
treea807ad69acd8e0db815eace379863b562a113c69 /app/Controllers/userController.php
parent00127f07c5fc784130d658e3f26519b0279fc6b8 (diff)
Ne pas rafraîchir les flux des utilisateurs non logués depuis x jours
https://github.com/marienfressinaud/FreshRSS/issues/681 Warning: needs some testing
Diffstat (limited to 'app/Controllers/userController.php')
-rw-r--r--app/Controllers/userController.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/Controllers/userController.php b/app/Controllers/userController.php
index 2343520ca..39db1d879 100644
--- a/app/Controllers/userController.php
+++ b/app/Controllers/userController.php
@@ -95,9 +95,8 @@ class FreshRSS_user_Controller extends Minz_ActionController {
Minz_View::prependTitle(_t('gen.title.user_management') . ' · ');
// Get the correct current user.
- $userDAO = new FreshRSS_UserDAO();
$username = Minz_Request::param('u', Minz_Session::param('currentUser'));
- if (!$userDAO->exist($username)) {
+ if (!FreshRSS_UserDAO::exist($username)) {
$username = Minz_Session::param('currentUser');
}
$this->view->current_user = $username;