From 531074a72f05e4936ae199bdbb831fe85a790ff4 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 16 Feb 2017 20:03:44 +0000 Subject: [PATCH] Handle the case when a contact is unknown. --- include/Contact.php | 4 ++++ 1 file changed, 4 insertions(+) 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')) {