From: Michael <heluecht@pirati.ca>
Date: Tue, 21 Jul 2020 18:53:01 +0000 (+0000)
Subject: Corrected variable in condition
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1d9ef1a3d84158c73cd8903fb38a9637ca153f5e;p=friendica.git

Corrected variable in condition
---

diff --git a/src/Model/Item.php b/src/Model/Item.php
index 96aeb63816..f7e7ae8737 100644
--- a/src/Model/Item.php
+++ b/src/Model/Item.php
@@ -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