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

This commit is contained in:
Dan Poltawski
2012-07-30 14:04:46 +08:00
+3
View File
@@ -899,6 +899,9 @@ abstract class repository {
$repositories = array();
if (isset($args['accepted_types'])) {
$accepted_types = $args['accepted_types'];
if (is_array($accepted_types) && in_array('*', $accepted_types)) {
$accepted_types = '*';
}
} else {
$accepted_types = '*';
}