diff --git a/htdocs/core/lib/ajax.lib.php b/htdocs/core/lib/ajax.lib.php index ff716db81f9..15354358c27 100644 --- a/htdocs/core/lib/ajax.lib.php +++ b/htdocs/core/lib/ajax.lib.php @@ -689,6 +689,8 @@ function ajax_constantonoff($code, $input = array(), $entity = null, $revertonof $input = array(); } + $out = ''; + if (empty($conf->use_javascript_ajax) || $forcenoajax) { if (!getDolGlobalString($code)) { $out = ''.img_picto($langs->trans("Disabled"), 'off').'';