]> git.mxchange.org Git - friendica.git/commitdiff
Fix "!="
authorMichael <heluecht@pirati.ca>
Wed, 22 Jul 2020 05:34:56 +0000 (05:34 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 22 Jul 2020 05:34:56 +0000 (05:34 +0000)
src/Model/Item.php

index 70e6d7cea8fb15516ffc339d3ced9c9f8b97007f..5cce6096fce86f5fc8b23e781742a183a47b7197 100644 (file)
@@ -3017,7 +3017,7 @@ class Item
 
                if (!Item::exists(['uri-id' => $item['parent-uri-id'], 'uid' => $uid])) {
                        $parent_item = self::selectFirst(self::ITEM_FIELDLIST, ['uri-id' => $item['parent-uri-id'], 'uid' => 0]);
-                       if (!empty($parent_item) && ($parent_item['private'] =! self::PRIVATE)) {
+                       if (!empty($parent_item) && ($parent_item['private'] != self::PRIVATE)) {
                                $stored = self::storeForUser($parent_item, $uid);
                                Logger::info('Public item stored for user', ['uri-id' => $parent_item['uri-id'], 'uid' => $uid, 'stored' => $stored]);
                        }