From bd201052def389e7b9628a909d5b31ccf724d1ec Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 29 Aug 2020 04:58:07 +0200 Subject: [PATCH] Update html.form.class.php --- htdocs/core/class/html.form.class.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 5acecccd4fa..3451139435d 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -5673,8 +5673,15 @@ class Form return $retstring; } - public function select_type_duration($prefix, $selected = 'minute'){ - + /** + * select_type_duration + * + * @param string $prefix Prefix + * @param string $modelType Model type + * @return string HTML select string + */ + public function select_type_duration($prefix, $selected = 'minute') + { global $langs; $retstring = ''; @@ -5695,8 +5702,7 @@ class Form $retstring .= ""; - print $retstring; - return; + return $retstring; } // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps