Skip to content

Commit

Permalink
User module: Fix "Argument must be of type int, string given" (#1099)
Browse files Browse the repository at this point in the history
  • Loading branch information
blackcoder87 authored Nov 14, 2024
1 parent e76ab6a commit ed6f994
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/modules/user/controllers/Profil.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit ed6f994

Please sign in to comment.