]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-11653 undefined rcache in /lib/dmllib.php during upgrades
authorskodak <skodak>
Mon, 8 Oct 2007 17:27:42 +0000 (17:27 +0000)
committerskodak <skodak>
Mon, 8 Oct 2007 17:27:42 +0000 (17:27 +0000)
lib/dmllib.php

index 8a890dbd62323ceee64a058a7044531f3049cbbb..d7d2f6e96588a595adacf10153be6af37231a512 100644 (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);
     }