From: skodak Date: Fri, 24 Apr 2009 17:59:28 +0000 (+0000) Subject: MDL-18961 fixed warning during upgrade; merged from MOODLE_19_STABLE X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c29b95d2c111fd98a7e25b3c9a792eceabcb9da6;p=moodle.git MDL-18961 fixed warning during upgrade; merged from MOODLE_19_STABLE --- diff --git a/admin/settings/grades.php b/admin/settings/grades.php index a141bae999..ac902c48d7 100644 --- a/admin/settings/grades.php +++ b/admin/settings/grades.php @@ -162,7 +162,7 @@ if (has_capability('moodle/grade:manage', $systemcontext) $scales = new admin_externalpage('scales', get_string('scales'), $CFG->wwwroot.'/grade/edit/scale/index.php', 'moodle/grade:manage'); $ADMIN->add('grades', $scales); - if ($CFG->enableoutcomes) { + if (!empty($CFG->enableoutcomes)) { $outcomes = new admin_externalpage('outcomes', get_string('outcomes', 'grades'), $CFG->wwwroot.'/grade/edit/outcome/index.php', 'moodle/grade:manage'); $ADMIN->add('grades', $outcomes); }