From: Michael Date: Thu, 16 Feb 2017 20:03:44 +0000 (+0000) Subject: Handle the case when a contact is unknown. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=531074a72f05e4936ae199bdbb831fe85a790ff4;p=friendica.git Handle the case when a contact is unknown. --- diff --git a/include/Contact.php b/include/Contact.php index 956e8e2919..2aab828f8a 100644 --- a/include/Contact.php +++ b/include/Contact.php @@ -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')) {