diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-05-02 14:49:05 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-05-02 14:49:05 +0200 |
commit | 0f38e6ec9caa726be646b6e25f7db10c5fa911ea (patch) | |
tree | 1bd2f610ff474bc90ae12feb28d6d26b42752dd1 /lib | |
parent | ed0c23a9cc49f10c741a84dc6c95e1dfef6ee61b (diff) | |
download | nextcloud-server-0f38e6ec9caa726be646b6e25f7db10c5fa911ea.tar.gz nextcloud-server-0f38e6ec9caa726be646b6e25f7db10c5fa911ea.zip |
logout before output to not run into header already sent problems
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/api.php b/lib/api.php index 8e4c3ef29b9..c74ffc1a557 100644 --- a/lib/api.php +++ b/lib/api.php @@ -112,8 +112,9 @@ class OC_API { $response = self::mergeResponses($responses); $formats = array('json', 'xml'); $format = !empty($_GET['format']) && in_array($_GET['format'], $formats) ? $_GET['format'] : 'xml'; - self::respond($response); OC_User::logout(); + + self::respond($response); } /** |