Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix strlen() null deprecation in AccountController.php #4155

Merged
merged 9 commits into from
Sep 6, 2024
6 changes: 3 additions & 3 deletions app/code/core/Mage/Customer/controllers/AccountController.php
Original file line number Diff line number Diff line change
Expand Up @@ -891,12 +891,12 @@ public function resetPasswordPostAction()
}

/**
* @return string|false
* @return string|false|null
*/
protected function getCustomerId()
{
$customerId = $this->getRequest()->getQuery('id', false);
if (strlen($customerId) > 12) {
$customerId = $this->getRequest()->getQuery("id");
kiatng marked this conversation as resolved.
Show resolved Hide resolved
if ($customerId !== null && strlen($customerId) > 12) {
$customerCollection = Mage::getModel('customer/customer')
->getCollection()
->addAttributeToSelect(['rp_customer_id'])
Expand Down
Loading