Skip to content

Commit

Permalink
MDL-40258: Fixed invalid json string error in file-picker
Browse files Browse the repository at this point in the history
  • Loading branch information
samchaffee committed Jun 21, 2013
1 parent 0ea1fbb commit 41340f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/filelib.php
Expand Up @@ -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));
}

/**
Expand Down

0 comments on commit 41340f0

Please sign in to comment.