MDL-11653 undefined rcache in /lib/dmllib.php during upgrades

This commit is contained in:
skodak
2007-10-08 17:27:42 +00:00
parent 1f5c4ad105
commit aa87d82cec
+1 -1
View File
@@ -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);
}