]> git.mxchange.org Git - friendica.git/commitdiff
Corrected variable in condition
authorMichael <heluecht@pirati.ca>
Tue, 21 Jul 2020 18:53:01 +0000 (18:53 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 21 Jul 2020 18:53:01 +0000 (18:53 +0000)
src/Model/Item.php

index 96aeb638164f2b96d5ce6ebf26f598fdb5120573..f7e7ae8737d0d7647f373a5ffd23deee9e381a5d 100644 (file)
@@ -2195,7 +2195,7 @@ class Item
                        $contact = Contact::getByURLForUser($item['author-link'], $uid, false, ['id']);
                }
 
-               if (!empty($item['contact-id'])) {
+               if (!empty($contact['id'])) {
                        $item['contact-id'] = $contact['id'];
                } else {
                        // Shouldn't happen at all