fixed error when no domains are available

Signed-off-by: tracer <tracer@24unix.net>
This commit is contained in:
tracer 2022-01-26 19:50:58 +01:00
parent 662737318b
commit c31642a90e
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ class RequestController
if (!empty($this->result)) {
echo json_encode(value: $this->result);
} else {
if ($this->status == 'pong') {
if (!empty($this->status) && $this->status == 'pong') {
echo json_encode(value: [
'response' => $this->status
]);