From: stronk7 Date: Fri, 27 Oct 2006 17:14:58 +0000 (+0000) Subject: I forgot to globalize $record_cache in delete_record_XXX() functions. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=068744a7a5a7ad06b884386e39a3a4e813e5b634;p=moodle.git I forgot to globalize $record_cache in delete_record_XXX() functions. Merged from MOODLE_17_STABLE --- diff --git a/lib/dmllib.php b/lib/dmllib.php index 97439cbbe1..cc1f785a9c 100644 --- a/lib/dmllib.php +++ b/lib/dmllib.php @@ -1080,7 +1080,7 @@ function set_field($table, $newfield, $newvalue, $field1, $value1, $field2='', $ */ function delete_records($table, $field1='', $value1='', $field2='', $value2='', $field3='', $value3='') { - global $db, $CFG; + global $db, $CFG, $record_cache; // Clear record_cache based on the parameters passed (individual record or whole table) if ($field1 == 'id') { @@ -1120,7 +1120,7 @@ function delete_records($table, $field1='', $value1='', $field2='', $value2='', */ function delete_records_select($table, $select='') { - global $CFG, $db; + global $CFG, $db, $record_cache; if (defined('MDL_PERFDB')) { global $PERF ; $PERF->dbqueries++; };