Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 4417a705cf9e410ac1ed32c982f592c6720da4c8 1 parent cc6641f
Sam Chaffee authored stronk7 committed

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/filelib.php
2  lib/filelib.php
@@ -1928,7 +1928,7 @@ function file_get_typegroup($element, $groups) {
1928 1928
         }
1929 1929
         $result = array_merge($result, $cached[$element][$group]);
1930 1930
     }
1931  
-    return array_unique($result);
  1931
+    return array_values(array_unique($result));
1932 1932
 }
1933 1933
 
1934 1934
 /**

0 notes on commit 4417a70

Please sign in to comment.
Something went wrong with that request. Please try again.