From 068744a7a5a7ad06b884386e39a3a4e813e5b634 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Fri, 27 Oct 2006 17:14:58 +0000 Subject: [PATCH] I forgot to globalize $record_cache in delete_record_XXX() functions. Merged from MOODLE_17_STABLE --- lib/dmllib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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++; }; -- 2.39.5