Permalink
Browse files

MDL-40258: Fixed invalid json string error in file-picker

  • Loading branch information...
1 parent 4f61afa commit 7991637057ca853ad9043ea1471234e97d832670 @sam-moodle sam-moodle committed with stronk7 Jun 20, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/filelib.php
View
@@ -1945,7 +1945,7 @@ function file_get_typegroup($element, $groups) {
}
$result = array_merge($result, $cached[$element][$group]);
}
- return array_unique($result);
+ return array_values(array_unique($result));
}
/**

0 comments on commit 7991637

Please sign in to comment.