diff --git a/htdocs/fichinter/list.php b/htdocs/fichinter/list.php index 871d6511669..c61fa4b1393 100644 --- a/htdocs/fichinter/list.php +++ b/htdocs/fichinter/list.php @@ -7,6 +7,7 @@ * Copyright (C) 2015 Jean-François Ferry * Copyright (C) 2018 Ferran Marcet * Copyright (C) 2021 Frédéric France + * Copyright (C) 2022 Charlène Benke * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -739,9 +740,10 @@ if ($resql) { $totalarray['nbfield']++; } if (!$i) { + $totalarray['type'][$totalarray['nbfield']] = 'duration'; $totalarray['pos'][$totalarray['nbfield']] = 'fd.duree'; } - $totalarray['val']['fd.duree'] += convertSecondToTime($obj->duree, 'allhourmin'); + $totalarray['val']['fd.duree'] += $obj->duree; } // Action column print '';