]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/DFRN.php
Fix potential bugs without expected behavior change
[friendica.git] / src / Protocol / DFRN.php
index 2dc5976b1dd5f71471754a88a3240bad305c9e58..cf6080c572d440fde1c26b2beb3de7d48ac28ed7 100644 (file)
@@ -1963,6 +1963,7 @@ class DFRN
                                DBA::escape($suggest["photo"]),
                                DBA::escape($suggest["request"])
                        );
+                       $fid = $r[0]["id"];
                }
 
                $condition = ['url' => $suggest["url"], 'name' => $suggest["name"], 'request' => $suggest["request"]];
@@ -1977,8 +1978,6 @@ class DFRN
                        exit();
                }
 
-               $fid = $r[0]["id"];
-
                $hash = Strings::getRandomHex();
 
                q(
@@ -2219,6 +2218,7 @@ class DFRN
 
                if (($xo->type == ACTIVITY_OBJ_PERSON) && ($xo->id)) {
                        // somebody was poked/prodded. Was it me?
+                       $Blink = '';
                        foreach ($xo->link as $l) {
                                $atts = $l->attributes();
                                switch ($atts["rel"]) {