summaryrefslogtreecommitdiffstats
path: root/codebase/scheduler_connector.php
diff options
context:
space:
mode:
Diffstat (limited to 'codebase/scheduler_connector.php')
-rw-r--r--codebase/scheduler_connector.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/codebase/scheduler_connector.php b/codebase/scheduler_connector.php
index 8ebe875..e2a9773 100644
--- a/codebase/scheduler_connector.php
+++ b/codebase/scheduler_connector.php
@@ -213,9 +213,10 @@ class JSONSchedulerConnector extends SchedulerConnector {
DB resultset
*/
protected function output_as_xml($res){
- $data=$this->xml_start();
- $data.=$this->render_set($res);
- $data.=$this->xml_end();
+ $result = $this->render_set($res);
+ if ($this->simple) return $result;
+
+ $data=$this->xml_start().json_encode($result).$this->xml_end();
if ($this->as_string) return $data;