]> git.mjollnir.org Git - moodle.git/commitdiff
capability report: Remove unnecssary, probably wrong, line of code.
authortjhunt <tjhunt>
Mon, 24 Nov 2008 04:46:29 +0000 (04:46 +0000)
committertjhunt <tjhunt>
Mon, 24 Nov 2008 04:46:29 +0000 (04:46 +0000)
admin/report/capability/index.php

index 4470b87a9e48386fecd81bbf38eaf5ecaea2a188..293d0580ce77e850ef911e242de9878bf9a875a0 100644 (file)
@@ -124,7 +124,6 @@ if ($capability) {
 
     // Put the contexts into a tree structure.
     foreach ($contexts as $conid => $con) {
-        $contexts[$conid]->children = array();
         $parentcontextid = get_parent_contextid($con);
         if ($parentcontextid) {
             $contexts[$parentcontextid]->children[] = $conid;