"MDL-17391, fix file_type_to_ext to class, which should return array all the time"
This commit is contained in:
+2
-2
@@ -2088,8 +2088,8 @@ class file_type_to_ext {
|
||||
public function get_file_ext($types) {
|
||||
$this->result = array();
|
||||
if ((is_array($types) && in_array('*', $types)) ||
|
||||
$types == '*') {
|
||||
return '*';
|
||||
$types == '*' || empty($types)) {
|
||||
return array('*');
|
||||
}
|
||||
foreach ($types as $key=>$value){
|
||||
if (strpos($value, '.') !== false) {
|
||||
|
||||
Reference in New Issue
Block a user