]> git.mxchange.org Git - friendica.git/commitdiff
Better handling of empty content
authorMichael <heluecht@pirati.ca>
Fri, 6 Jul 2018 22:08:41 +0000 (22:08 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 6 Jul 2018 22:08:41 +0000 (22:08 +0000)
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'])) {