diff options
| author | 2014-10-16 17:15:51 +0200 | |
|---|---|---|
| committer | 2014-10-17 16:24:21 +0200 | |
| commit | 5797344aff9ceebbdeb6e49305f3984a5c89f82c (patch) | |
| tree | 7f9b0b609297852cb470930bfa3ffca6fd631892 /app/Controllers/userController.php | |
| parent | d4ad951b9b686f387056bda8f3fa6ede8d9ca3f1 (diff) | |
Fix a bug to get size of user (SQLite)
Diffstat (limited to 'app/Controllers/userController.php')
| -rw-r--r-- | app/Controllers/userController.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Controllers/userController.php b/app/Controllers/userController.php index 4a04737f2..d5c90a382 100644 --- a/app/Controllers/userController.php +++ b/app/Controllers/userController.php @@ -94,14 +94,15 @@ class FreshRSS_user_Controller extends Minz_ActionController { Minz_View::prependTitle(_t('users.manage') . ' ยท '); + // Get the correct current user. $userDAO = new FreshRSS_UserDAO(); - $username = Minz_Request::param('u', Minz_Session::param('currentUser')); if (!$userDAO->exist($username)) { $username = Minz_Session::param('currentUser'); } $this->view->current_user = $username; + // Get information about the current user. $entryDAO = FreshRSS_Factory::createEntryDao($this->view->current_user); $this->view->nb_articles = $entryDAO->count(); $this->view->size_user = $entryDAO->size(); |
