Better handling of empty content

This commit is contained in:
Michael 2018-07-06 22:08:41 +00:00
parent 0c51159111
commit 9e262e6157

View File

@ -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'])) {