]> git.mxchange.org Git - friendica.git/blobdiff - mod/follow.php
Docs: add a note on adding `use` on theme.php
[friendica.git] / mod / follow.php
index 639fa068677fb598de2cd2f7e70d79b1afa62df7..1292d24e3359ca9f401cae2853178ede9094e96e 100644 (file)
@@ -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'),