mirror of
https://github.com/getformwork/formwork.git
synced 2025-02-23 17:24:38 +01:00
Fix fields with numeric 0
value considered empty
This commit is contained in:
parent
46e65fb363
commit
e3bd5b1b9e
@ -39,7 +39,7 @@ class Field extends DataSetter
|
||||
*/
|
||||
public function isEmpty()
|
||||
{
|
||||
return empty($this->value());
|
||||
return empty($this->value()) && !is_numeric($this->value());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user