MDL-38474 repository: Undefined variable

This commit is contained in:
Frederic Massart
2013-03-15 13:00:35 +08:00
parent 7c78db604b
commit abf0c9fc9e
+1 -1
View File
@@ -645,7 +645,7 @@ abstract class repository {
$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);