Avoid some notices...

This commit is contained in:
stronk7 2004-08-07 17:21:43 +00:00
parent 65f1df629c
commit 1ad1917042

View File

@ -66,21 +66,27 @@
<td align=right><p>forum_enablerssfeeds:</td>
<td>
<?php
if ($CFG->enablerssfeeds == 0) {
if (!isset($CFG->enablerssfeeds) || $CFG->enablerssfeeds == 0) {
print_string("no");
} else {
unset($options);
$options[0] = get_string("no");
$options[1] = get_string("yes");
$forum_enablerssfeeds = false;
if (isset($CFG->forum_enablerssfeeds) && $CFG->forum_enablerssfeeds == 1) {
$forum_enablerssfeeds = true;
}
choose_from_menu ($options, "forum_enablerssfeeds", $CFG->forum_enablerssfeeds, "", "", "");
choose_from_menu ($options, "forum_enablerssfeeds", $forum_enablerssfeeds, "", "", "");
}
?>
</td>
<td>
<?php
print_string("configenablerssfeeds","forum");
if ($CFG->enablerssfeeds == 0) {
if (!isset($CFG->enablerssfeeds) || $CFG->enablerssfeeds == 0) {
print_string("configenablerssfeedsdisabled");
}
?>