Bladeren bron

Internal cosmetic on duration attribute

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1317 a333f486-631f-4898-b8df-5754b55c2be0
romainq 14 jaren geleden
bovenliggende
commit
27ad9949eb
1 gewijzigde bestanden met toevoegingen van 1 en 0 verwijderingen
  1. 1 0
      core/attributedef.class.inc.php

+ 1 - 0
core/attributedef.class.inc.php

@@ -2185,6 +2185,7 @@ class AttributeDuration extends AttributeInteger
 	
 	static function SplitDuration($duration)
 	{
+		$duration = (int) $duration;
 		$days = floor($duration / 86400);
 		$hours = floor(($duration - (86400*$days)) / 3600);
 		$minutes = floor(($duration - (86400*$days + 3600*$hours)) / 60);