Skip to content

Commit

Permalink
fixing missing bracket
Browse files Browse the repository at this point in the history
  • Loading branch information
toyomoyo committed Sep 14, 2006
1 parent 89d5759 commit c5a3467
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion file.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
// warning: it may break backwards compatibility
if ((!empty($CFG->preventaccesstohiddenfiles))
and (count($args) >= 2)
and (!has_capability('moodle/course:viewhiddenactivities', get_context_instance(CONTEXT_COURSE, $course->id))) {
and (!has_capability('moodle/course:viewhiddenactivities', get_context_instance(CONTEXT_COURSE, $course->id)))) {

$reference = ltrim($relativepath, "/{$args[0]}/");

Expand Down

0 comments on commit c5a3467

Please sign in to comment.