From 65f4d137a75327ad4c8a5b7993285707724394ec Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 14 Aug 2006 06:22:29 +0000 Subject: [PATCH] Fixed a typo --- lib/accesslib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/accesslib.php b/lib/accesslib.php index 3d7cb6dbd5..76c3c6f3ed 100755 --- a/lib/accesslib.php +++ b/lib/accesslib.php @@ -867,7 +867,7 @@ function get_context_instance_by_id($id) { } if ($context = get_record('context', 'id', $id)) { // Update the cache and return - $context_cache[$context->level][$context->instance] = $context; + $context_cache[$context->level][$context->instanceid] = $context; $context_cache_id[$context->id] = $context; return $context; } -- 2.39.5