summaryrefslogtreecommitdiffstats
path: root/lib/json.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-07-24 00:39:59 +0200
committerRobin Appelman <icewind@owncloud.com>2012-07-24 00:39:59 +0200
commit856d9c0b54cc971940df4ed64429d994faf770f9 (patch)
treed89f73b5e24b6c0535e6669080f15ef5e1165e04 /lib/json.php
parent796768577154dc9cc2542e33d8d81c6a5fa77dea (diff)
downloadnextcloud-server-856d9c0b54cc971940df4ed64429d994faf770f9.tar.gz
nextcloud-server-856d9c0b54cc971940df4ed64429d994faf770f9.zip
some indention fixes
Diffstat (limited to 'lib/json.php')
-rw-r--r--lib/json.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/json.php b/lib/json.php
index c49b831c12b..b46878375d5 100644
--- a/lib/json.php
+++ b/lib/json.php
@@ -94,12 +94,12 @@ class OC_JSON{
* Encode and print $data in json format
*/
public static function encodedPrint($data,$setContentType=true){
- // Disable mimesniffing, don't move this to setContentTypeHeader!
- header( 'X-Content-Type-Options: nosniff' );
- if($setContentType){
- self::setContentTypeHeader();
- }
- array_walk_recursive($data, array('OC_JSON', 'to_string'));
- echo json_encode($data);
+ // Disable mimesniffing, don't move this to setContentTypeHeader!
+ header( 'X-Content-Type-Options: nosniff' );
+ if($setContentType){
+ self::setContentTypeHeader();
+ }
+ array_walk_recursive($data, array('OC_JSON', 'to_string'));
+ echo json_encode($data);
}
}