Ensure return type is consistent (list vs object)

This commit is contained in:
jkellerer 2022-05-05 20:00:40 +02:00 committed by GitHub
parent 187ddedf96
commit f4dc01d1ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -991,6 +991,7 @@ if (isset($_GET['query'])) {
if ($tags === null) {
$data = mailbox('get', 'mailbox_details', $object);
process_get_return($data);
} else {
$mailboxes = mailbox('get', 'mailboxes', $object, $tags);
if (is_array($mailboxes)) {
@ -999,8 +1000,8 @@ if (isset($_GET['query'])) {
$data[] = $details;
}
}
process_get_return($data, false);
}
process_get_return($data);
break;
}
break;