From eb8f4622c413d5ee31eba88eecdd0ebd61ae07b1 Mon Sep 17 00:00:00 2001 From: Riccardo Date: Fri, 30 Sep 2016 09:53:17 +0100 Subject: [PATCH] remove casting, no needed with new if statement --- app/code/Magento/Customer/Controller/Adminhtml/Index/Save.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Customer/Controller/Adminhtml/Index/Save.php b/app/code/Magento/Customer/Controller/Adminhtml/Index/Save.php index bdce622dd9bd1..a9551794ced71 100644 --- a/app/code/Magento/Customer/Controller/Adminhtml/Index/Save.php +++ b/app/code/Magento/Customer/Controller/Adminhtml/Index/Save.php @@ -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') {