]> git.mjollnir.org Git - moodle.git/commitdiff
Added a more robust check to avoid a notice
authormoodler <moodler>
Thu, 21 Feb 2008 06:02:16 +0000 (06:02 +0000)
committermoodler <moodler>
Thu, 21 Feb 2008 06:02:16 +0000 (06:02 +0000)
mod/forum/index.php

index 5e0b941c507244377fffc2108fb833f7e9d52ed1..85d866de31ab30f724a8fcac9844a7dbc30916ba 100644 (file)
                 $forumlink = $forumname;
                 $discussionlink = $count;
             } else {
-                if ($forum->visible) {
+                if (!empty($forum->visible)) {
                     $style = '';
                 } else {
                     $style = 'class="dimmed"';