Merge pull request #3168 from annando/bugfix-contact-posts
posts_from_contact_url: Handle the case when a contact is unknown.
This commit is contained in:
commit
6dc07514db
|
@ -730,6 +730,10 @@ function posts_from_contact_url(App $a, $contact_url) {
|
||||||
$sql = "`item`.`uid` = %d";
|
$sql = "`item`.`uid` = %d";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!dbm::is_result($r)) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
$author_id = intval($r[0]["author-id"]);
|
$author_id = intval($r[0]["author-id"]);
|
||||||
|
|
||||||
if (get_config('system', 'old_pager')) {
|
if (get_config('system', 'old_pager')) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user