Skip to content
Snippets Groups Projects
Commit 9e3fdeab authored by clement's avatar clement
Browse files

Merge branch 'master' of gitlab.utc.fr:nf17-camp-p14/clivi

parents dc44f0e6 eb13ef65
No related branches found
No related tags found
No related merge requests found
...@@ -12,9 +12,10 @@ class BoolField extends Field ...@@ -12,9 +12,10 @@ class BoolField extends Field
public function validate() public function validate()
{ {
$this->value = $POST[$this->name]; if (isset($_POST[$this->name]))
if (!is_bool($this->value)) $this->value = $_POST[$this->name];
return false; else
$this->value = NULL;
return true; return true;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment