Skip to content

Commit

Permalink
Merge branch 'MDL-38474-master' of git://github.com/FMCorz/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
Damyon Wiese committed Mar 15, 2013
2 parents 6a28470 + 71ac66e commit 7112729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repository/manage_instances.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
}

/// Security: we cannot perform any action if the type is not visible or if the context has been disabled
if (!empty($new)){
if (!empty($new) && empty($edit)){
$type = repository::get_type_by_typename($new);
} else if (!empty($edit)){
$instance = repository::get_instance($edit);
Expand Down

0 comments on commit 7112729

Please sign in to comment.