Skip to content

Commit

Permalink
fix error from formatting not array ocs responses
Browse files Browse the repository at this point in the history
Fixes #187

Signed-off-by: Robin Appelman <robin@icewind.nl>
  • Loading branch information
icewind1991 committed Nov 27, 2018
1 parent 635d268 commit 07f1456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Controller/FolderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ private function buildOCSResponseXML($format, DataResponse $data) {
if (isset($folderData['id'])) {
// single folder response
$folderData = $this->folderDataForXML($folderData);
} else if (count($folderData) && isset(current($folderData)['id'])) {
} else if (is_array($folderData) && count($folderData) && isset(current($folderData)['id'])) {
// folder list
$folderData = array_map([$this, 'folderDataForXML'], $folderData);
}
Expand Down

0 comments on commit 07f1456

Please sign in to comment.