Skip to content

Commit

Permalink
Fixed cast store config (checkout/cart/delete_quote_after) to int to …
Browse files Browse the repository at this point in the history
…avoid unsupported operand (#3065)
  • Loading branch information
darinda authored Mar 6, 2023
1 parent 6352b46 commit 4c61738
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/core/Mage/Sales/Model/Observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function cleanExpiredQuotes($schedule)

$lifetimes = Mage::getConfig()->getStoresConfigByPath('checkout/cart/delete_quote_after');
foreach ($lifetimes as $storeId => $lifetime) {
$lifetime *= 86400;
$lifetime = (int)$lifetime * 86400;

/** @var Mage_Sales_Model_Resource_Quote_Collection $quotes */
$quotes = Mage::getModel('sales/quote')->getCollection();
Expand Down

0 comments on commit 4c61738

Please sign in to comment.