Skip to content
Browse files

MDL-25942 fix another Oracle compatibility issue

  • Loading branch information...
1 parent db1f94c commit 5a6094137d2e05dc76b1939348ee9b01332a9360 @skodak skodak committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/db/upgrade.php
View
4 lib/db/upgrade.php
@@ -3933,8 +3933,8 @@ function xmldb_main_upgrade($oldversion) {
if ($oldversion < 2010061900.04) {
// there is no default course role any more, each enrol plugin has to handle it separately
if (!empty($CFG->defaultcourseroleid)) {
- $sql = "UPDATE {course} SET defaultrole = :default WHERE defaultrole = 0";
- $params = array('default' => $CFG->defaultcourseroleid);
+ $sql = "UPDATE {course} SET defaultrole = :defaultrole WHERE defaultrole = 0";
+ $params = array('defaultrole' => $CFG->defaultcourseroleid);
$DB->execute($sql, $params);
}
unset_config('defaultcourseroleid');

0 comments on commit 5a60941

Please sign in to comment.
Something went wrong with that request. Please try again.