From 0c6e92129242cf9c84d6ec981e74894b2e336a47 Mon Sep 17 00:00:00 2001 From: dongsheng Date: Wed, 7 Jan 2009 01:13:53 +0000 Subject: [PATCH] "MDL-13766, fixed a bug concerning files filter" --- repository/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repository/lib.php b/repository/lib.php index 19c4e872d0..1999eaa20f 100644 --- a/repository/lib.php +++ b/repository/lib.php @@ -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) { -- 2.39.5