]> git.mxchange.org Git - friendica.git/commitdiff
Preparation for a not found contact.
authorMichael Vogel <icarus@dabo.de>
Sun, 4 Oct 2015 12:49:12 +0000 (14:49 +0200)
committerMichael Vogel <icarus@dabo.de>
Sun, 4 Oct 2015 12:49:12 +0000 (14:49 +0200)
mod/follow.php

index 603707809be23219debd596fc93ef5d1d30ad763..b635b3493bb24dc5c45e1249b6ea8c5f4f0c2fc8 100644 (file)
@@ -64,6 +64,9 @@ function follow_content(&$a) {
        $r = q("SELECT `location`, `about`, `keywords` FROM `gcontact` WHERE `nurl` = '%s'",
                normalise_link($ret["url"]));
 
+       if (!$r)
+               $r = array(array("location" => "", "about" => "", "keywords" => ""));
+
        $header = $ret["name"];
 
        if ($ret["addr"] != "")