From b409132f8608397deb07daa6ecc64134345ed6ff Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 24 Jan 2016 17:56:34 +0100 Subject: [PATCH] Avoid a warning if a user hadn't subscribed to any forum. --- include/forums.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/forums.php b/include/forums.php index 995a29cad1..952d09a494 100644 --- a/include/forums.php +++ b/include/forums.php @@ -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'],