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
public function validate()
{
$this->value = $POST[$this->name];
if (!is_bool($this->value))
return false;
if (isset($_POST[$this->name]))
$this->value = $_POST[$this->name];
else
$this->value = NULL;
return true;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment