MDL-11653 undefined rcache in /lib/dmllib.php during upgrades
This commit is contained in:
+1
-1
@@ -1587,7 +1587,7 @@ function update_record($table, $dataobject) {
|
||||
}
|
||||
|
||||
// Remove this record from record cache since it will change
|
||||
if ($CFG->rcache === true) {
|
||||
if (!empty($CFG->rcache)) { // no === here! breaks upgrade
|
||||
rcache_unset($table, $dataobject->id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user