diff --git a/app/code/core/Mage/Customer/Model/Observer.php b/app/code/core/Mage/Customer/Model/Observer.php index 126c7acdf12..d6546d4cc09 100644 --- a/app/code/core/Mage/Customer/Model/Observer.php +++ b/app/code/core/Mage/Customer/Model/Observer.php @@ -226,8 +226,9 @@ public function quoteSubmitAfter($observer) */ public function deleteCustomerFlowPassword() { - $connection = Mage::getSingleton('core/resource')->getConnection('write'); + $resource = Mage::getSingleton('core/resource'); + $connection = $resource->getConnection('write'); $condition = array('requested_date < ?' => Mage::getModel('core/date')->date(null, '-1 day')); - $connection->delete($connection->getTableName('customer_flowpassword'), $condition); + $connection->delete($resource->getTableName('customer_flowpassword'), $condition); } }