summaryrefslogtreecommitdiffstats
path: root/core/ajax/grouplist.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/ajax/grouplist.php')
-rw-r--r--core/ajax/grouplist.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/ajax/grouplist.php b/core/ajax/grouplist.php
index d0d10f7a84e..cc15102bbc3 100644
--- a/core/ajax/grouplist.php
+++ b/core/ajax/grouplist.php
@@ -44,8 +44,6 @@ foreach( OC_Group::getGroups() as $i ){
$groups[] = array( "groupname" => $i );
}
-// We send json data
-header( "Content-Type: application/jsonrequest" );
-echo json_encode($groups);
+OC_JSON::encodedPrint($groups);
?>