From efb069eb5a47bac95effed0b86ea5aea23a81974 Mon Sep 17 00:00:00 2001 From: tracer Date: Tue, 30 Apr 2024 14:11:54 +0200 Subject: [PATCH] modified version update --- composer.json | 2 +- src/Controller/RequestController.php | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) 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