Skip to content
Browse files

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

  • Loading branch information...
1 parent d306f96 commit 4010b2205158e81d17dc66068273ee60f1d62c2e @sam-moodle sam-moodle committed with stronk7 Jun 20, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/filelib.php
View
2 lib/filelib.php
@@ -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.
Something went wrong with that request. Please try again.