Skip to content

Commit

Permalink
Added missing table prefix, fixes #162
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel committed Feb 1, 2017
1 parent 34ab93c commit 75d9162
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 75d9162

Please sign in to comment.