From aa87d82cece25e33d2a35d5b210600182943374c Mon Sep 17 00:00:00 2001 From: skodak Date: Mon, 8 Oct 2007 17:27:42 +0000 Subject: [PATCH] MDL-11653 undefined rcache in /lib/dmllib.php during upgrades --- lib/dmllib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5