Avoid a warning if a user hadn't subscribed to any forum.
This commit is contained in:
parent
a447839c50
commit
b409132f86
|
@ -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 New Issue
Block a user