From 96ffc58cc4f083b9355384b1a0c0ec4938c264e5 Mon Sep 17 00:00:00 2001 From: Ludovic Poujol Date: Fri, 1 Jul 2022 16:13:49 +0200 Subject: [PATCH] Clear some warnings about undefined vars --- evolibs/Form.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/evolibs/Form.php b/evolibs/Form.php index 772c572..74aea53 100644 --- a/evolibs/Form.php +++ b/evolibs/Form.php @@ -461,13 +461,13 @@ class AlphaNumericalTextInputFormField extends FormField { class DomainInputFormField extends FormField { protected $mandatory = NULL; - protected $textsize = NULL; + //protected $textsize = NULL; public function __construct($label, $mandatory=TRUE, $hidden=FALSE) { parent::__construct($label); $this->mandatory = $mandatory; $this->hidden = $hidden; - $this->textsize = $textsize; + //$this->textsize = $textsize; } public function verify($set_error) { @@ -491,7 +491,7 @@ class DomainInputFormField extends FormField { else $input .= 'name.'" value="'.htmlspecialchars($this->value,ENT_QUOTES).'"'; - $input .= ' maxlength="'.$this->textsize[1].'" size="'.$this->textsize[0].'" '; + //$input .= ' maxlength="'.$this->textsize[1].'" size="'.$this->textsize[0].'" '; if($this->read_only) { $input .= 'readonly="readonly="'; } if($this->disabled) { $input .= 'disabled="disabled="'; } $input .= '/>'; @@ -516,12 +516,12 @@ class DomainInputFormField extends FormField { class DomainListInputFormField extends FormField { protected $mandatory = NULL; - protected $textsize = NULL; + //protected $textsize = NULL; public function __construct($label, $mandatory=TRUE) { parent::__construct($label); $this->mandatory = $mandatory; - $this->textsize = $textsize; + //$this->textsize = $textsize; } public function verify($set_error) { @@ -547,7 +547,7 @@ class DomainListInputFormField extends FormField { $input = ''; $input .= 'name.'" value="'.htmlspecialchars($this->value,ENT_QUOTES).'"'; - $input .= ' maxlength="'.$this->textsize[1].'" size="'.$this->textsize[0].'" '; + //$input .= ' maxlength="'.$this->textsize[1].'" size="'.$this->textsize[0].'" '; if($this->read_only) { $input .= 'readonly="readonly="'; } if($this->disabled) { $input .= 'disabled="disabled="'; } $input .= '/>';