From: moodler Date: Thu, 21 Feb 2008 06:02:16 +0000 (+0000) Subject: Added a more robust check to avoid a notice X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c5eb407be4586dcfc53e8301db0876561b24fa9b;p=moodle.git Added a more robust check to avoid a notice --- 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"';