From e5ade4df2bfe99cab2a3460ba20b72eede68f062 Mon Sep 17 00:00:00 2001 From: Regis Houssin <regis@dolibarr.fr> Date: Sat, 6 Nov 2010 19:01:59 +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 b2cc83d78b4..3517c3cfe16 100644 --- a/htdocs/install/upgrade2.php +++ b/htdocs/install/upgrade2.php @@ -2674,8 +2674,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; -- GitLab