summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/api.php3
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);
}
/**