]> git.mjollnir.org Git - moodle.git/commitdiff
"MDL-13766, fixed a bug concerning files filter"
authordongsheng <dongsheng>
Wed, 7 Jan 2009 01:13:53 +0000 (01:13 +0000)
committerdongsheng <dongsheng>
Wed, 7 Jan 2009 01:13:53 +0000 (01:13 +0000)
repository/lib.php

index 19c4e872d068b445aa269f51c980a2dc52bb74e2..1999eaa20f66055fcc00b5beb74d962e466337f0 100644 (file)
@@ -1468,7 +1468,7 @@ abstract class repository {
             $pass = true;
             $value->children = array_filter($value->children, array($this, 'filter'));
         } else {
-            if ($accepted_types == '*') {
+            if ($accepted_types == '*' || in_array('*', $accepted_types)) {
                 $pass = true;
             } elseif (is_array($accepted_types)) {
                 foreach ($accepted_types as $type) {