From 022ef7bcca064a73251f1124108df1cbe6436cc2 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 6 Nov 2010 18:31:35 +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 d31084f799e..3f5c17ff10a 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 = str_replace(',','.',$obj->task_duration); - $time = floatval($time); + $time = floatval($obj->task_duration); list($hour,$min) = explode('.',$time); $hour = $hour*60*60; $min = ($min/100)*60*60;