From: Michael Date: Fri, 6 Jul 2018 22:08:41 +0000 (+0000) Subject: Better handling of empty content X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9e262e6157b068175349428325fe24a8fa9c2187;p=friendica.git Better handling of empty content --- diff --git a/src/Model/Item.php b/src/Model/Item.php index 7c4a3cbffe..be317b2882 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'])) {