mirror of
https://github.com/friendica/friendica
synced 2024-12-23 11:20:15 +00:00
Merge pull request #2288 from annando/1601-warning-forumlist
Avoid a warning if a user hadn't subscribed to any forum.
This commit is contained in:
commit
09622ad593
1 changed files with 3 additions and 0 deletions
|
@ -42,6 +42,9 @@ function get_forumlist($uid, $showhidden = true, $lastitem, $showprivate = false
|
|||
intval($uid)
|
||||
);
|
||||
|
||||
if (!$contacts)
|
||||
return($forumlist);
|
||||
|
||||
foreach($contacts as $contact) {
|
||||
$forumlist[] = array(
|
||||
'url' => $contact['url'],
|
||||
|
|
Loading…
Reference in a new issue