From: tjhunt Date: Wed, 7 May 2008 13:04:43 +0000 (+0000) Subject: MDL-14726 - rcache bit wrong in set_field X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=015f926d6eb4485acbca97cf5a081f7ffe3133ee;p=moodle.git MDL-14726 - rcache bit wrong in set_field --- diff --git a/lib/dmllib.php b/lib/dmllib.php index c9da9ff3fa..842b93759d 100644 --- a/lib/dmllib.php +++ b/lib/dmllib.php @@ -1247,9 +1247,9 @@ function set_field($table, $newfield, $newvalue, $field1, $value1, $field2='', $ if ($field1 == 'id') { rcache_unset($table, $value1); } else if ($field2 == 'id') { - rcache_unset($table, $value1); + rcache_unset($table, $value2); } else if ($field3 == 'id') { - rcache_unset($table, $value1); + rcache_unset($table, $value3); } else { rcache_unset_table($table); }