Completed
Push — master ( a85116...adb355 )
by Francis
01:32
created
libraries/RESTResponse.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,9 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.