From ba41336099141a25b84291c1bbd8366dc9797d1b Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 4 Oct 2015 14:49:12 +0200 Subject: [PATCH] Preparation for a not found contact. --- mod/follow.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mod/follow.php b/mod/follow.php index 603707809b..b635b3493b 100644 --- a/mod/follow.php +++ b/mod/follow.php @@ -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"] != "")