diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 412a3c89be7..33e3df9cb74 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -11374,8 +11374,10 @@ function dolGetButtonAction($label, $text = '', $actionType = 'default', $url = // If $url is an array, we must build a dropdown button if (is_array($url)) { + $out = ''; + if (count($url) > 1) { - $out = '