Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 41340f0461176fbc1aa81171042a3ce9166f706f 1 parent 0ea1fbb
@sam-moodle sam-moodle authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/filelib.php
View
2  lib/filelib.php
@@ -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));
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.