From d13f36938cf5132b822c313eef4f9ed565ecf7b9 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 29 Mar 2018 23:29:41 -0400 Subject: [PATCH] Suppress error message for non-existing contacts in mod/follow --- mod/follow.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mod/follow.php b/mod/follow.php index 639fa06867..1292d24e33 100644 --- a/mod/follow.php +++ b/mod/follow.php @@ -176,7 +176,10 @@ function follow_content(App $a) $a->page['aside'] = ''; - Profile::load($a, '', 0, Contact::getDetailsByURL($ret['url']), false); + $profiledata = Contact::getDetailsByURL($ret['url']); + if ($profiledata) { + Profile::load($a, '', 0, $profiledata, false); + } if ($gcontact_id <> 0) { $o .= replace_macros(get_markup_template('section_title.tpl'),