From 4bda5c717cdd6cdcb59cc76f262654f2d4729324 Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Fri, 27 Oct 2006 02:15:02 +0000 Subject: [PATCH] merged, taking care of a warning --- lib/dmllib.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/dmllib.php b/lib/dmllib.php index ed26d18c8c..a4491aa035 100644 --- a/lib/dmllib.php +++ b/lib/dmllib.php @@ -1301,8 +1301,10 @@ function update_record($table, $dataobject) { // Remove this record from record cache since it will change global $record_cache; - unset($record_cache[$table][$dataobject->id]); - + if (isset($record_cache[$table][$dataobject->id])) { + unset($record_cache[$table][$dataobject->id]); + } + /// Temporary hack as part of phasing out all access to obsolete user tables XXX if (!empty($CFG->rolesactive)) { if (in_array($table, array('user_students', 'user_teachers', 'user_coursecreators', 'user_admins'))) { -- 2.39.5