sforkowany z mirror/friendica
Merge pull request #2288 from annando/1601-warning-forumlist
Avoid a warning if a user hadn't subscribed to any forum.2022.09-rc
commit
09622ad593
|
@ -42,6 +42,9 @@ function get_forumlist($uid, $showhidden = true, $lastitem, $showprivate = false
|
||||||
intval($uid)
|
intval($uid)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (!$contacts)
|
||||||
|
return($forumlist);
|
||||||
|
|
||||||
foreach($contacts as $contact) {
|
foreach($contacts as $contact) {
|
||||||
$forumlist[] = array(
|
$forumlist[] = array(
|
||||||
'url' => $contact['url'],
|
'url' => $contact['url'],
|
||||||
|
|
Ładowanie…
Reference in New Issue