Skip to content

Commit

Permalink
Article: Fix "Passing null to parameter of type string is deprecated"…
Browse files Browse the repository at this point in the history
… in preview (#957)
  • Loading branch information
blackcoder87 authored Apr 13, 2024
1 parent 1126a28 commit d6f02a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/modules/article/controllers/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ public function showAction()
->setReadAccess($groups)
->setImage($this->getRequest()->getPost('image'))
->setImageSource($this->getRequest()->getPost('imageSource'))
->setVisits(0);
->setVisits(0)
->setVotes('');
} else {
$article = $articleMapper->getArticleByIdLocale($this->getRequest()->getParam('id'), $this->locale);
}
Expand Down

0 comments on commit d6f02a5

Please sign in to comment.