From e2917db98d0e6756d0ecf495545991b88feff554 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 6 Nov 2010 19:02:02 +0000 Subject: [PATCH] Fix: bad conversion if records is a float number --- htdocs/install/upgrade2.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/install/upgrade2.php b/htdocs/install/upgrade2.php index 3f5c17ff10a..6b13ca52dbe 100644 --- a/htdocs/install/upgrade2.php +++ b/htdocs/install/upgrade2.php @@ -2701,8 +2701,7 @@ function migrate_project_task_time($db,$langs,$conf) { // convert to second // only for int time and float time ex: 1,75 for 1h45 - $time = floatval($obj->task_duration); - list($hour,$min) = explode('.',$time); + list($hour,$min) = explode('.',$obj->task_duration); $hour = $hour*60*60; $min = ($min/100)*60*60; $newtime = $hour+$min;