]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Item.php
Better handling of empty content
[friendica.git] / src / Model / Item.php
index 7c4a3cbffe1f43a74579c1de94a9c8731e1673b6..be317b2882d49bd0cd654b6e844981f2d853ca48 100644 (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'])) {