Fix comment and remove not use global

This commit is contained in:
ATM john 2021-11-28 12:15:31 +01:00
parent a75ae6a8cf
commit 29437a22b9

View File

@ -121,7 +121,7 @@ class FormSetup
} }
/** /**
* Generae an attributes string form an input array * Generate an attributes string form an input array
* @param array $attributes an array of attributes keys and values, * @param array $attributes an array of attributes keys and values,
* @return string * @return string
*/ */
@ -690,7 +690,7 @@ class FormSetupItem
*/ */
public function generateInputField() public function generateInputField()
{ {
global $conf, $user; global $conf;
if (!empty($this->fieldOverride)) { if (!empty($this->fieldOverride)) {
return $this->fieldOverride; return $this->fieldOverride;