Permalink
Browse files

Merge branch 'MDL-34507-21' of git://github.com/FMCorz/moodle into MO…

…ODLE_21_STABLE
  • Loading branch information...
2 parents e60c472 + 76c590c commit 5b6f73f48825508939f5f2c9d68adfec22e85fa5 @danpoltawski danpoltawski committed Jul 30, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 repository/lib.php
View
@@ -815,6 +815,9 @@ public static function get_instances($args = array()) {
$ft = new filetype_parser();
if (isset($args['accepted_types'])) {
$accepted_types = $args['accepted_types'];
+ if (is_array($accepted_types) && in_array('*', $accepted_types)) {
+ $accepted_types = '*';
+ }
} else {
$accepted_types = '*';
}

0 comments on commit 5b6f73f

Please sign in to comment.