mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-21 17:01:19 +01:00
Fix warning
This commit is contained in:
@@ -11374,8 +11374,10 @@ function dolGetButtonAction($label, $text = '', $actionType = 'default', $url =
|
|||||||
|
|
||||||
// If $url is an array, we must build a dropdown button
|
// If $url is an array, we must build a dropdown button
|
||||||
if (is_array($url)) {
|
if (is_array($url)) {
|
||||||
|
$out = '';
|
||||||
|
|
||||||
if (count($url) > 1) {
|
if (count($url) > 1) {
|
||||||
$out = '<div class="dropdown inline-block dropdown-holder">';
|
$out .= '<div class="dropdown inline-block dropdown-holder">';
|
||||||
$out .= '<a style="margin-right: auto;" class="dropdown-toggle classfortooltip butAction'.($userRight ? '' : 'Refused').'" title="'.dol_escape_htmltag($label).'" data-toggle="dropdown">'.($text ? $text : $label).'</a>';
|
$out .= '<a style="margin-right: auto;" class="dropdown-toggle classfortooltip butAction'.($userRight ? '' : 'Refused').'" title="'.dol_escape_htmltag($label).'" data-toggle="dropdown">'.($text ? $text : $label).'</a>';
|
||||||
$out .= '<div class="dropdown-content">';
|
$out .= '<div class="dropdown-content">';
|
||||||
foreach ($url as $subbutton) {
|
foreach ($url as $subbutton) {
|
||||||
|
|||||||
Reference in New Issue
Block a user