Skip to content

Commit eb8f462

Browse files
author
Riccardo
committed
remove casting, no needed with new if statement
1 parent aab055d commit eb8f462

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Customer/Controller/Adminhtml/Index

1 file changed

+1
-1
lines changed

app/code/Magento/Customer/Controller/Adminhtml/Index/Save.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public function execute()
244244

245245
$isSubscribed = null;
246246
if ($this->_authorization->isAllowed(null)) {
247-
$isSubscribed = (bool)$this->getRequest()->getPost('subscription');
247+
$isSubscribed = $this->getRequest()->getPost('subscription');
248248
}
249249
if ($isSubscribed !== null) {
250250
if ($isSubscribed !== '0') {

0 commit comments

Comments
 (0)