diff --git a/composer.json b/composer.json index dc19038..fd58366 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "24unix/bindapi", "description": "manage Bind9 DNS server via REST API", "version": "1.0.9", - "build_number": "367", + "build_number": "368", "authors": [ { "name": "Micha Espey", diff --git a/src/Controller/RequestController.php b/src/Controller/RequestController.php index d64922a..a1e1cbe 100644 --- a/src/Controller/RequestController.php +++ b/src/Controller/RequestController.php @@ -712,9 +712,7 @@ class RequestController 'response' => $this->response ]); } elseif (!empty($this->result)) { - echo json_encode(value: [ - 'result' => $this->result - ]); + echo json_encode(value: $this->result); } elseif (!empty($this->message)) { echo json_encode(value: [ 'message' => $this->message