NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
PHP 49% JavaScript 35% HTML 9% CSS 4% Shell 2% Python 1% Lua 0% Perl 0% Ruby 0% SCSS 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git

Commit

Ensure return type is consistent (list vs object)

f4dc01d1
jkellerer <[email protected]> 4 years, 3 months ago
data/web/json_api.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Diff

diff --git a/data/web/json_api.php b/data/web/json_api.php
index b04314ca..8db4ef89 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;