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 Feb 28, 2018
1 parent d1115b1 commit 6388ac6
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 6388ac6

Please sign in to comment.