Apparently we can get 200 without a body back
This commit is contained in:
parent
4e0b7df3ca
commit
d19de72637
1 changed files with 4 additions and 0 deletions
|
@ -1107,6 +1107,10 @@ class kolab_files_engine
|
|||
$status = $response->getStatus();
|
||||
$body = @json_decode($response->getBody(), true);
|
||||
|
||||
if (!$body) {
|
||||
throw new Exception("Failed to get capabilities. No body returned");
|
||||
}
|
||||
|
||||
if ($status == 200 && $body['status'] == 'OK') {
|
||||
$_SESSION['kolab_files_caps'] = $body['result'];
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue