Merge pull request #7250 from MrPetovan/bug/6410-normalize-message-button
[friendica.git/.git] / src / Model / Contact.php
index 73118be..01bbd23 100644 (file)
@@ -2171,7 +2171,8 @@ class Contact extends BaseObject
 
                if (!empty($contact)) {
             // Contact is blocked at user-level
-                   if (self::isBlockedByUser($contact['id'], $importer['id'])) {
+                   if (!empty($contact['id']) && !empty($importer['id']) &&
+                       self::isBlockedByUser($contact['id'], $importer['id'])) {
                        return false;
             }