diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 4658c615b7d..b75f21603f8 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -85,10 +85,17 @@ class Form if (! empty($conf->global->MAIN_USE_JQUERY_JEDITABLE)) { - $tmp=explode(':',$typeofdata); - $ret.= "\n".'
'; - $ret.= $langs->trans($text); - $ret.= '
'."\n"; + if ($perm) + { + $tmp=explode(':',$typeofdata); + $ret.= '
'; + $ret.= $langs->trans($text); + $ret.= '
'."\n"; + } + else + { + $ret.= $langs->trans($text); + } } else { @@ -230,7 +237,7 @@ class Form } } - $out.= "\n".'
'; + $out.= '
'; $out.= $value; $out.= '
'."\n"; }