From 1a7bfbc15ad099cfaaa4016103097d3469d175d0 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 9 Mar 2024 01:11:52 +0100 Subject: [PATCH] Clean code --- htdocs/core/class/html.form.class.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 4a43106e8dc..a251da01cc5 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -111,7 +111,7 @@ class Form */ public function editfieldkey($text, $htmlname, $preselected, $object, $perm, $typeofdata = 'string', $moreparam = '', $fieldrequired = 0, $notabletag = 0, $paramid = 'id', $help = '') { - global $conf, $langs; + global $langs; $ret = ''; @@ -490,8 +490,6 @@ class Form */ protected function editInPlace($object, $value, $htmlname, $condition, $inputType = 'textarea', $editvalue = null, $extObject = null, $custommsg = null) { - global $conf; - $out = ''; // Check parameters