@@ -61,7 +61,9 @@ |
||
61 | 61 | { |
62 | 62 | http_response_code($this->code); |
63 | 63 | |
64 | - if ($data != null) echo !$this->json ? $this->data : json_encode($this->data); |
|
64 | + if ($data != null) { |
|
65 | + echo !$this->json ? $this->data : json_encode($this->data); |
|
66 | + } |
|
65 | 67 | |
66 | 68 | if (get_instance()->config->item('rest')['response_exit']) { |
67 | 69 | exit(EXIT_SUCCESS); |