]> git.mjollnir.org Git - moodle.git/commitdiff
I forgot to globalize $record_cache in delete_record_XXX() functions.
authorstronk7 <stronk7>
Fri, 27 Oct 2006 17:14:58 +0000 (17:14 +0000)
committerstronk7 <stronk7>
Fri, 27 Oct 2006 17:14:58 +0000 (17:14 +0000)
Merged from MOODLE_17_STABLE

lib/dmllib.php

index 97439cbbe1d583f9944b2ab182877ae75f4cd60e..cc1f785a9c6d32fd6e4645df00d46813ec977795 100644 (file)
@@ -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++; };