Permalink
Browse files

Merge branch 'MDL-38474-master' of git://github.com/FMCorz/moodle

  • Loading branch information...
damyon committed Mar 15, 2013
2 parents 6a28470 + 71ac66e commit 71127292069e98bc6ba36026b2ac1b3250bbf21c
Showing with 1 addition and 1 deletion.
  1. +1 −1 repository/manage_instances.php
@@ -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);

0 comments on commit 7112729

Please sign in to comment.