Selaa lähdekoodia

Fix notice when managing user (#1785)

See #1765 & #960
Alexis Degrugillier 8 vuotta sitten
vanhempi
commit
4be15d5b40
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      app/Controllers/userController.php

+ 2 - 0
app/Controllers/userController.php

@@ -137,6 +137,8 @@ class FreshRSS_user_Controller extends Minz_ActionController {
 
 
 		$this->view->current_user = Minz_Request::param('u');
 		$this->view->current_user = Minz_Request::param('u');
 
 
+		$this->view->nb_articles = 0;
+		$this->view->size_user = 0;
 		if ($this->view->current_user) {
 		if ($this->view->current_user) {
 			// Get information about the current user.
 			// Get information about the current user.
 			$entryDAO = FreshRSS_Factory::createEntryDao($this->view->current_user);
 			$entryDAO = FreshRSS_Factory::createEntryDao($this->view->current_user);