diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index e2e3727bddb..1f5d14b7529 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -3733,13 +3733,14 @@ class Form
/**
* Function to show a form to select a duration on a page
*
- * @param string $prefix prefix
- * @param int $iSecond Default preselected duration (number of seconds)
- * @param int $disabled Disable the combo box
- * @param string $typehour if 'select' then input hour and input min is a combo, if 'text' input hour is in text and input min is a combo
+ * @param string $prefix Prefix
+ * @param int $iSecond Default preselected duration (number of seconds)
+ * @param int $disabled Disable the combo box
+ * @param string $typehour If 'select' then input hour and input min is a combo, if 'text' input hour is in text and input min is a combo
+ * @param string $minunderhours If 1, show minutes selection under the hours
* @return void
*/
- function select_duration($prefix, $iSecond='', $disabled=0, $typehour='select')
+ function select_duration($prefix, $iSecond='', $disabled=0, $typehour='select', $minunderhours=0)
{
global $langs;
@@ -3770,7 +3771,11 @@ class Form
{
print '';
}
- print $langs->trans('Hours'). " ";
+ print $langs->trans('Hours');
+
+ if ($minunderhours) print ' ';
+ else print " ";
+
print '