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

This commit is contained in:
andryyy
2020-09-06 11:59:36 +02:00
parent 013b3f88da
commit 8a296e90c3
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)) {
return '{}';
return '[]';
}
else {
return json_encode($line);