Better handling of empty content
This commit is contained in:
parent
0c51159111
commit
9e262e6157
|
@ -1832,7 +1832,9 @@ class Item extends BaseObject
|
|||
}
|
||||
|
||||
if (empty($fields)) {
|
||||
return;
|
||||
// when there are no fields at all, just use the condition
|
||||
// This is to ensure that we always store content.
|
||||
$fields = $condition;
|
||||
}
|
||||
|
||||
if (!empty($item['plink'])) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user