[Web] Return json array when mailq empty, fixes #3738

master
andryyy 2020-09-06 11:59:36 +02:00
parent 013b3f88da
commit 8a296e90c3
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ function mailq($_action, $_data = null) {
} }
} }
if (!isset($line) || empty($line)) { if (!isset($line) || empty($line)) {
return '{}'; return '[]';
} }
else { else {
return json_encode($line); return json_encode($line);

View File

@ -370,7 +370,7 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u
echo $mailq; echo $mailq;
} }
else { else {
echo '{}'; echo '[]';
} }
break; break;
} }