Skip to content

Commit 02c01c1

Browse files
authored
Add int casting in getLogCleanTime, issue #949 (#1770)
Co-authored-by: Fabrizio Balliano <[email protected]>
1 parent ea0f8e5 commit 02c01c1

File tree

1 file changed

+2
-2
lines changed
  • app/code/core/Mage/Log/Model

1 file changed

+2
-2
lines changed

app/code/core/Mage/Log/Model/Log.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ protected function _construct()
5959
}
6060

6161
/**
62-
* @return float|int
62+
* @return int
6363
*/
6464
public function getLogCleanTime()
6565
{
66-
return Mage::getStoreConfig(self::XML_LOG_CLEAN_DAYS) * 60 * 60 * 24;
66+
return (int)Mage::getStoreConfig(self::XML_LOG_CLEAN_DAYS) * 60 * 60 * 24;
6767
}
6868

6969
/**

0 commit comments

Comments
 (0)