diff --git a/application/modules/user/controllers/Profil.php b/application/modules/user/controllers/Profil.php index 53767ae4d..c3d0bf50f 100644 --- a/application/modules/user/controllers/Profil.php +++ b/application/modules/user/controllers/Profil.php @@ -27,7 +27,7 @@ public function indexAction() $profileFieldsTranslationMapper = new ProfileFieldsTranslationMapper(); $friendsMapper = new FriendsMapper(); - $profil = ($this->getRequest()->getParam('user')) ? $userMapper->getUserById($this->getRequest()->getParam('user')) : null; + $profil = ($this->getRequest()->getParam('user') && is_numeric($this->getRequest()->getParam('user'))) ? $userMapper->getUserById($this->getRequest()->getParam('user')) : null; if ($profil) { $profileIconFields = $profileFieldsMapper->getProfileFields(['type' => 2]);