From: toyomoyo Date: Fri, 27 Oct 2006 02:15:02 +0000 (+0000) Subject: merged, taking care of a warning X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4bda5c717cdd6cdcb59cc76f262654f2d4729324;p=moodle.git merged, taking care of a warning --- 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'))) {