diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index cc21279eacf..d05102b5568 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -5294,6 +5294,8 @@ class Form { $num = 0; + if (empty($possiblelink['enabled'])) continue; + if (! empty($possiblelink['perms']) && (empty($restrictlinksto) || in_array($key, $restrictlinksto)) && (empty($excludelinksto) || ! in_array($key, $excludelinksto))) { print '
global->MAIN_OPTIMIZEFORTEXTBROWSER)?' style="display:none"':'').'>';