Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 737b7458902a3d96022d389572fe7575f757dc51 1 parent abd67b8
nicolasconnault authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/dmllib.php
View
2  lib/dmllib.php
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.