]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-12827 Saving a clone of the $record in the cache instead of the record itself...
authornicolasconnault <nicolasconnault>
Fri, 4 Jan 2008 09:23:42 +0000 (09:23 +0000)
committernicolasconnault <nicolasconnault>
Fri, 4 Jan 2008 09:23:42 +0000 (09:23 +0000)
lib/dmllib.php

index c0a4fa130cf3a0452f3245f75406b69d3bbaed90..14a344e70a51e2fb53df49fcc89e496ab59b7be2 100644 (file)
@@ -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;