bugfix: NULL quoteId considered paid

This commit is contained in:
Japhet Stevens 2013-04-20 01:36:00 -04:00
parent 86c0aa5811
commit 2157b9f221
1 changed files with 3 additions and 0 deletions

View File

@ -27,6 +27,9 @@ class Bitpay_Bitcoins_Model_Ipn extends Mage_Core_Model_Abstract
function GetStatusReceived($quoteId, $statuses)
{
if (!$quoteId)
return false;
$collection = $this->getCollection()->AddFilter('quote_id', $quoteId);
foreach($collection as $i)
if (in_array($i->getStatus(), $statuses))