From d1c859b49ef71b6906d4212804dbf804de3bb3b7 Mon Sep 17 00:00:00 2001 From: goujonpa <goujonpa@gmail.com> Date: Thu, 19 Jun 2014 02:48:00 +0200 Subject: [PATCH] bonjour dureefield --- class/dureefield.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/class/dureefield.php b/class/dureefield.php index 6e75866..cad90c0 100644 --- a/class/dureefield.php +++ b/class/dureefield.php @@ -23,8 +23,10 @@ class DureeField extends Field public function show() { $heures = (int)$this->value / 60; + $heure = intval($heures); $minutes = (int)$this->value % 60; - $html = $heures.'h '.$minutes.'min'; + $minute = intval($minutes); + $html = $heure.'h '.$minute.'min'; return $html; } } -- GitLab