Permalink
Browse files

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

  • Loading branch information...
sam-moodle authored and stronk7 committed Jun 20, 2013
1 parent d306f96 commit 4010b2205158e81d17dc66068273ee60f1d62c2e
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/filelib.php
View
@@ -1880,7 +1880,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 4010b22

Please sign in to comment.