Permalink
Browse files

MDL-14965: Pass-by-reference call broke install on php5

  • Loading branch information...
1 parent 3814789 commit 2a212d94a017560d3d643047030c390e8118c83a sam_marshall committed May 23, 2008
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/accesslib.php
View
@@ -1253,7 +1253,8 @@ function load_subcontext($userid, $context, &$accessdata) {
// If we ever see stuff nested further this needs to
// change to do 1 query over the exploded path to
// find out which one is the course
- $targetid = array_pop(explode('/',get_course_from_path($context->path)));
+ $courses = explode('/',get_course_from_path($context->path));
+ $targetid = array_pop($courses);
$context = get_context_instance_by_id($targetid);
}

0 comments on commit 2a212d9

Please sign in to comment.