From 9e262e6157b068175349428325fe24a8fa9c2187 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 6 Jul 2018 22:08:41 +0000 Subject: [PATCH] Better handling of empty content --- src/Model/Item.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index 7c4a3cbff..be317b288 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -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'])) {