Skip to content

Commit

Permalink
Merge pull request #163 from sreichel/hotfix/customer/model/observer/…
Browse files Browse the repository at this point in the history
…deleteCustomerFlowPassword

Added missing table prefix, fixes #162
  • Loading branch information
Flyingmana committed Feb 16, 2017
2 parents e8e78ab + 75d9162 commit 7a8658f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/code/core/Mage/Customer/Model/Observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 7a8658f

Please sign in to comment.