From: skodak Date: Mon, 8 Oct 2007 17:27:42 +0000 (+0000) Subject: MDL-11653 undefined rcache in /lib/dmllib.php during upgrades X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=aa87d82cece25e33d2a35d5b210600182943374c;p=moodle.git MDL-11653 undefined rcache in /lib/dmllib.php during upgrades --- diff --git a/lib/dmllib.php b/lib/dmllib.php index 8a890dbd62..d7d2f6e965 100644 --- a/lib/dmllib.php +++ b/lib/dmllib.php @@ -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); }