From b73491b28067de2a1adf748754e22c6841b707ab Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Wed, 27 May 2015 21:27:54 -0700 Subject: [PATCH] MDL-50309 core_upgrade: fixed undefined '$customusermenuitems' notice --- lib/db/upgrade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index 4da08aad754..3bfd0baa861 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -4308,7 +4308,7 @@ function xmldb_main_upgrade($oldversion) { // Add "My grades" to the user menu. $oldconfig = get_config('core', 'customusermenuitems'); if (strpos("mygrades,grades|/grade/report/mygrades.php|grades", $oldconfig) === false) { - $newconfig = "mygrades,grades|/grade/report/mygrades.php|grades\n" . $CFG->customusermenuitems; + $newconfig = "mygrades,grades|/grade/report/mygrades.php|grades\n" . $oldconfig; set_config('customusermenuitems', $newconfig); }