Skip to content

Commit

Permalink
Add int casting in getLogCleanTime, issue OpenMage/magento-lts#949 (#…
Browse files Browse the repository at this point in the history
…1770)

Co-authored-by: Fabrizio Balliano <fabrizio@fabrizioballiano.com>
  • Loading branch information
randallelliott714 and fballiano committed Aug 7, 2021
1 parent a1b349d commit 9d38d63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/code/core/Mage/Log/Model/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ protected function _construct()
}

/**
* @return float|int
* @return int
*/
public function getLogCleanTime()
{
return Mage::getStoreConfig(self::XML_LOG_CLEAN_DAYS) * 60 * 60 * 24;
return (int)Mage::getStoreConfig(self::XML_LOG_CLEAN_DAYS) * 60 * 60 * 24;
}

/**
Expand Down

0 comments on commit 9d38d63

Please sign in to comment.