From f4dc01d1ecd95d22f12b6fdf81b8676346e401c5 Mon Sep 17 00:00:00 2001 From: jkellerer Date: Thu, 5 May 2022 20:00:40 +0200 Subject: [PATCH] Ensure return type is consistent (list vs object) --- data/web/json_api.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/web/json_api.php b/data/web/json_api.php index b04314ca6..8db4ef899 100644 --- a/data/web/json_api.php +++ b/data/web/json_api.php @@ -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;