NULL instead of throwing error when a input field does not exist
This commit is contained in:
parent
45ddd15ecf
commit
8178640a3b
@ -23,6 +23,6 @@ class FormField {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function loadFromEnv($name) {
|
public function loadFromEnv($name) {
|
||||||
$this->value=$_POST[$name];
|
$this->value=isset($_POST[$name])?$_POST[$name]:null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user