Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 2a212d94a017560d3d643047030c390e8118c83a 1 parent 3814789
authored May 23, 2008

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  lib/accesslib.php
3  lib/accesslib.php
@@ -1253,7 +1253,8 @@ function load_subcontext($userid, $context, &$accessdata) {
1253 1253
         // If we ever see stuff nested further this needs to
1254 1254
         // change to do 1 query over the exploded path to
1255 1255
         // find out which one is the course
1256  
-        $targetid    = array_pop(explode('/',get_course_from_path($context->path)));
  1256
+        $courses = explode('/',get_course_from_path($context->path));
  1257
+        $targetid = array_pop($courses);
1257 1258
         $context = get_context_instance_by_id($targetid);
1258 1259
                                  
1259 1260
     }

0 notes on commit 2a212d9

Please sign in to comment.
Something went wrong with that request. Please try again.