]> git.mxchange.org Git - friendica.git/commitdiff
Inverted condition
authorMichael <heluecht@pirati.ca>
Sat, 26 Jun 2021 11:31:37 +0000 (11:31 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 26 Jun 2021 11:31:37 +0000 (11:31 +0000)
src/Model/Item.php

index 26834c3a8bf20a75cd9e4be424891f015349e7a3..871ff9ad8e9fb14ff240b84e305322e4fd991939 100644 (file)
@@ -159,7 +159,7 @@ class Item
                        $fields['vid'] = Verb::getID($fields['verb']);
                }
 
-               if (empty($fields['edited'])) {
+               if (!empty($fields['edited'])) {
                        $previous = Post::selectFirst(['edited'], $condition);
                }