mirror of
https://github.com/friendica/friendica
synced 2024-10-11 09:14:33 +02:00
Handle the case when a contact is unknown.
This commit is contained in:
parent
ce953e5882
commit
531074a72f
|
@ -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')) {
|
||||
|
|
Loading…
Reference in a new issue