]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed a typo
authormoodler <moodler>
Mon, 14 Aug 2006 06:22:29 +0000 (06:22 +0000)
committermoodler <moodler>
Mon, 14 Aug 2006 06:22:29 +0000 (06:22 +0000)
lib/accesslib.php

index 3d7cb6dbd50bebf0cef12ff1fdc70399263cffd5..76c3c6f3edc4d82d61f4dff9e58101c4eb1e66b5 100755 (executable)
@@ -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;
     }