]> git.mxchange.org Git - friendica.git/commitdiff
Handle the case when a contact is unknown.
authorMichael <heluecht@pirati.ca>
Thu, 16 Feb 2017 20:03:44 +0000 (20:03 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 16 Feb 2017 20:03:44 +0000 (20:03 +0000)
include/Contact.php

index 956e8e29197eee522a39d2589fcbe39420adbac3..2aab828f8aaf2d8cc169251f05f2af7cb6b722b3 100644 (file)
@@ -730,6 +730,10 @@ function posts_from_contact_url(App $a, $contact_url) {
                $sql = "`item`.`uid` = %d";
        }
 
+       if (!dbm::is_result($r)) {
+               return '';
+       }
+
        $author_id = intval($r[0]["author-id"]);
 
        if (get_config('system', 'old_pager')) {