logout before output to not run into header already sent problems

This commit is contained in:
Bernhard Posselt 2013-05-02 14:49:05 +02:00
parent ed0c23a9cc
commit 0f38e6ec9c
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}
/**