From: nicolasconnault Date: Fri, 4 Jan 2008 09:23:42 +0000 (+0000) Subject: MDL-12827 Saving a clone of the $record in the cache instead of the record itself... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7dd512670b8735cbec04b1dd8a8f048e973587ac;p=moodle.git MDL-12827 Saving a clone of the $record in the cache instead of the record itself, to avoid referencing --- 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;