Permalink
Browse files

MDL-38474 repository: Undefined variable

  • Loading branch information...
1 parent 7c78db6 commit abf0c9fc9ef9bd09112c4ec4bfdd5bfea9bc065e @FMCorz FMCorz committed Mar 15, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 repository/lib.php
View
@@ -645,7 +645,7 @@ public static function get_types($visible=null) {
$currentcontext = $this->context;
// Ensure that the user can view the repository in the current context.
- $can = has_capability('repository/'.$this->type.':view', $this->currentcontext);
+ $can = has_capability('repository/'.$this->type.':view', $currentcontext);
// Context in which the repository has been created.
$repocontext = context::instance_by_id($this->instance->contextid);

0 comments on commit abf0c9f

Please sign in to comment.