Skip to content

Commit

Permalink
remove casting, no needed with new if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Riccardo committed Sep 30, 2016
1 parent aab055d commit eb8f462
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ public function execute()

$isSubscribed = null;
if ($this->_authorization->isAllowed(null)) {
$isSubscribed = (bool)$this->getRequest()->getPost('subscription');
$isSubscribed = $this->getRequest()->getPost('subscription');
}
if ($isSubscribed !== null) {
if ($isSubscribed !== '0') {
Expand Down

0 comments on commit eb8f462

Please sign in to comment.