mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 04:52:36 +02:00
MDL-40258: Fixed invalid json string error in file-picker
This commit is contained in:
parent
0ea1fbbb55
commit
41340f0461
@ -1878,7 +1878,7 @@ function file_get_typegroup($element, $groups) {
|
||||
}
|
||||
$result = array_merge($result, $cached[$element][$group]);
|
||||
}
|
||||
return array_unique($result);
|
||||
return array_values(array_unique($result));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user