diff --git a/evolibs/Form.php b/evolibs/Form.php index 97b6921..f1cdba9 100644 --- a/evolibs/Form.php +++ b/evolibs/Form.php @@ -879,7 +879,7 @@ class SelectFormField extends FormField { } public function verify($set_error) { - if($this->mandatory && empty($this->value)) { + if($this->mandatory && strlen($this->value) === 0) { if($set_error) $this->error = 'Champ obligatoire'; return FALSE; } @@ -894,7 +894,7 @@ class SelectFormField extends FormField { $input .= ' '."\n"; foreach ($this->list as $value => $label) { $input .= ' '."\n"; } $input .= "\n";