From bbb19253519cbab5aeb694f6d07e88b8f40f749a Mon Sep 17 00:00:00 2001 From: timramseyjr Date: Wed, 13 Apr 2016 08:14:08 -0400 Subject: [PATCH] Cast Mage_Core_Model_App::ADMIN_STORE_ID to string Mage_Core_Model_App::ADMIN_STORE_ID is an integer, so === will never return true --- .../community/Sitewards/B2BProfessional/Helper/Customer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/code/community/Sitewards/B2BProfessional/Helper/Customer.php b/app/code/community/Sitewards/B2BProfessional/Helper/Customer.php index 8db06a3..baeccf1 100644 --- a/app/code/community/Sitewards/B2BProfessional/Helper/Customer.php +++ b/app/code/community/Sitewards/B2BProfessional/Helper/Customer.php @@ -131,7 +131,7 @@ private function isCustomerActiveForStore(Mage_Customer_Model_Customer $oCustome */ private function isCustomerAdminCreation(Mage_Customer_Model_Customer $oCustomer) { - return $oCustomer->getStoreId() === Mage_Core_Model_App::ADMIN_STORE_ID; + return $oCustomer->getStoreId() === (string) Mage_Core_Model_App::ADMIN_STORE_ID; } /** @@ -193,4 +193,4 @@ private function getActivatedCustomerGroupIds() } return $this->aActivatedCustomerGroupIds; } -} \ No newline at end of file +}