]> git.mxchange.org Git - friendica.git/commitdiff
Fix implode Warning in Diaspora
authorHypolite Petovan <mrpetovan@gmail.com>
Sun, 14 Jan 2018 14:05:06 +0000 (09:05 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Sun, 14 Jan 2018 14:05:06 +0000 (09:05 -0500)
src/Protocol/Diaspora.php

index bf14b44d2269c802e25bd4c568af8516e6119c95..7071eb3526b9c34984162ff577c33ae15c2694e1 100644 (file)
@@ -4301,6 +4301,10 @@ class Diaspora
                }
 
                $message = self::constructLike($r[0], $contact);
+               if ($message === false) {
+                       return false;
+               }
+
                $message["author_signature"] = self::signature($contact, $message);
 
                /*
@@ -4333,6 +4337,10 @@ class Diaspora
                $contact["uprvkey"] = $uprvkey;
 
                $message = self::constructComment($item, $contact);
+               if ($message === false) {
+                       return false;
+               }
+
                $message["author_signature"] = self::signature($contact, $message);
 
                /*