From 55f6cdd495400329ea8fcb2a5e9973d5fed903f2 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 7 Feb 2012 10:25:58 +0100 Subject: [PATCH] Qual: Removed warnings --- htdocs/comm/fiche.php | 2 +- htdocs/contact/perso.php | 5 ++--- htdocs/core/class/html.form.class.php | 4 ++-- htdocs/core/lib/date.lib.php | 8 ++++---- htdocs/core/lib/project.lib.php | 6 +++--- htdocs/core/lib/xcal.lib.php | 6 +++--- .../fichinter/doc/pdf_soleil.modules.php | 6 +++--- htdocs/fichinter/fiche.php | 8 ++++---- htdocs/fichinter/list.php | 4 ++-- htdocs/projet/activity/index.php | 20 +++++++++---------- htdocs/projet/tasks/time.php | 8 ++++---- test/phpunit/DateLibTest.php | 6 +++--- 12 files changed, 41 insertions(+), 42 deletions(-) diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php index 8044ecfcccf..60a0524fd11 100644 --- a/htdocs/comm/fiche.php +++ b/htdocs/comm/fiche.php @@ -678,7 +678,7 @@ if ($id > 0) print ""; print ''.img_object($langs->trans("ShowPropal"),"propal").' '.$objp->ref.''."\n"; //print ''.dol_print_date($db->jdate($objp->startdate)).''."\n"; - print ''.ConvertSecondToTime($objp->duration).''."\n"; + print ''.convertSecondToTime($objp->duration).''."\n"; print ''.$fichinter_static->getLibStatut(3).''."\n"; print ''; $var=!$var; diff --git a/htdocs/contact/perso.php b/htdocs/contact/perso.php index 5ffdfaaab7b..8cf299ec133 100644 --- a/htdocs/contact/perso.php +++ b/htdocs/contact/perso.php @@ -201,9 +201,8 @@ else print '   '; //var_dump($birthdatearray); - //print ($now-$birthdate).' - '.ConvertSecondToTime($now-$birthdate,'year').'
'; - $ageyear=ConvertSecondToTime($now-$object->birthday,'year')-1970; - $agemonth=ConvertSecondToTime($now-$object->birthday,'month')-1; + $ageyear=convertSecondToTime($now-$object->birthday,'year')-1970; + $agemonth=convertSecondToTime($now-$object->birthday,'month')-1; if ($ageyear >= 2) print '('.$ageyear.' '.$langs->trans("DurationYears").')'; else if ($agemonth >= 2) print '('.$agemonth.' '.$langs->trans("DurationMonths").')'; else print '('.$agemonth.' '.$langs->trans("DurationMonth").')'; diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index f4ec9c1e919..bf81c7ceaad 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -3437,8 +3437,8 @@ class Form { require_once(DOL_DOCUMENT_ROOT."/core/lib/date.lib.php"); - $hourSelected = ConvertSecondToTime($iSecond,'hour'); - $minSelected = ConvertSecondToTime($iSecond,'min'); + $hourSelected = convertSecondToTime($iSecond,'hour'); + $minSelected = convertSecondToTime($iSecond,'min'); } print '