Skip to content

Commit

Permalink
[bug-OpenMage#163] Missing table prefix in Mage_Customer_Model_Observ…
Browse files Browse the repository at this point in the history
…er::deleteCustomerFlowPassword()
  • Loading branch information
sreichel authored and edannenberg committed Sep 19, 2018
1 parent f5d8dd2 commit 77c102c
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 77c102c

Please sign in to comment.