mirror of
https://github.com/moodle/moodle.git
synced 2025-01-20 06:39:04 +01:00
Avoid some notices...
This commit is contained in:
parent
65f1df629c
commit
1ad1917042
@ -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");
|
||||
}
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user