From 7dd512670b8735cbec04b1dd8a8f048e973587ac Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Fri, 4 Jan 2008 09:23:42 +0000 Subject: [PATCH] MDL-12827 Saving a clone of the $record in the cache instead of the record itself, to avoid referencing --- lib/dmllib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dmllib.php b/lib/dmllib.php index c0a4fa130c..14a344e70a 100644 --- a/lib/dmllib.php +++ b/lib/dmllib.php @@ -2583,7 +2583,7 @@ function rcache_set($table, $id, $rec) { global $CFG, $MCACHE, $rcache; if ($CFG->cachetype === 'internal') { - $rcache->data[$table][$id] = $rec; + $rcache->data[$table][$id] = fullclone($rec); } else { $key = $table . '|' . $id; -- 2.39.5