]> git.mxchange.org Git - friendica.git/commitdiff
Fix Fatal error in Protocol\Diaspora (#5460)
authorHypolite Petovan <mrpetovan@eml.cc>
Sun, 22 Jul 2018 23:22:41 +0000 (19:22 -0400)
committerGitHub <noreply@github.com>
Sun, 22 Jul 2018 23:22:41 +0000 (19:22 -0400)
src/Protocol/Diaspora.php

index 9ad90869be8043a72b7708e660c462df376faa55..341d3d2a893db6f5ebea5a36252c0be354c6c85d 100644 (file)
@@ -2764,6 +2764,10 @@ class Diaspora
                        return false;
                }
 
+               if (!$contact) {
+                       $contact = [];
+               }
+
                logger("Got retraction for ".$target_type.", sender ".$sender." and user ".$importer["uid"], LOGGER_DEBUG);
 
                switch ($target_type) {