fix #72 - update to Kirby 4.5
This commit is contained in:
parent
cb1f842fc9
commit
44d08b3e21
273 changed files with 678 additions and 54176 deletions
|
|
@ -124,9 +124,17 @@ class Field
|
|||
*/
|
||||
public function isEmpty(): bool
|
||||
{
|
||||
$value = $this->value;
|
||||
|
||||
if (is_string($value) === true) {
|
||||
$value = trim($value);
|
||||
}
|
||||
|
||||
return
|
||||
empty($this->value) === true &&
|
||||
in_array($this->value, [0, '0', false], true) === false;
|
||||
$value === null ||
|
||||
$value === '' ||
|
||||
$value === [] ||
|
||||
$value === '[]';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue