From 0214d15c5512f8b027a1c1ddf5174c8d9fe5148b Mon Sep 17 00:00:00 2001 From: Dev2a Date: Tue, 7 Jan 2020 21:39:20 +0100 Subject: [PATCH] Fix Check array of action after kooks --- htdocs/core/class/html.form.class.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 6b0950b4f8d..103137aad99 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -591,23 +591,24 @@ class Form * Generate select HTML to choose massaction * * @param string $selected Value auto selected when at least one record is selected. Not a preselected value. Use '0' by default. - * @param int $arrayofaction array('code'=>'label', ...). The code is the key stored into the GETPOST('massaction') when submitting action. + * @param array $arrayofaction array('code'=>'label', ...). The code is the key stored into the GETPOST('massaction') when submitting action. * @param int $alwaysvisible 1=select button always visible - * @return string Select list + * @return string|void Select list */ public function selectMassAction($selected, $arrayofaction, $alwaysvisible = 0) { global $conf, $langs, $hookmanager; - if (count($arrayofaction) == 0) return; $disabled = 0; $ret = '
'; $ret .= '