Permalink
Browse files

MDL-12827 Saving a clone of the $record in the cache instead of the r…

…ecord itself, to avoid referencing
  • Loading branch information...
1 parent abd67b8 commit 737b7458902a3d96022d389572fe7575f757dc51 nicolasconnault committed Jan 4, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/dmllib.php
View
@@ -2324,7 +2324,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;

0 comments on commit 737b745

Please sign in to comment.