From c5eb407be4586dcfc53e8301db0876561b24fa9b Mon Sep 17 00:00:00 2001
From: moodler <moodler>
Date: Thu, 21 Feb 2008 06:02:16 +0000
Subject: [PATCH] Added a more robust check to avoid a notice

---
 mod/forum/index.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mod/forum/index.php b/mod/forum/index.php
index 5e0b941c50..85d866de31 100644
--- a/mod/forum/index.php
+++ b/mod/forum/index.php
@@ -221,7 +221,7 @@
                 $forumlink = $forumname;
                 $discussionlink = $count;
             } else {
-                if ($forum->visible) {
+                if (!empty($forum->visible)) {
                     $style = '';
                 } else {
                     $style = 'class="dimmed"';
-- 
2.39.5