Skip to content

Commit 7d98531

Browse files
author
Loïc
authored
Merge pull request #64 from jeedom/beta
merge
2 parents c2381e0 + 93ae52d commit 7d98531

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

core/class/script.class.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ public function execute($_options = null) {
331331
if($this->getType() == 'info'){
332332
return $result;
333333
}
334+
break;
334335
case 'xml':
335336
$request = str_replace('"', '', $request);
336337
if($this->getType() == 'info' && isset(script::$_requet_cache[$this->getConfiguration('urlXml')])){
@@ -368,6 +369,7 @@ public function execute($_options = null) {
368369
if($this->getType() == 'info'){
369370
return (is_array($json)) ? json_encode($json) : $json;
370371
}
372+
break;
371373
case 'json':
372374
$request = str_replace('"', '', $request);
373375
if($this->getType() == 'info' && isset(script::$_requet_cache[$this->getConfiguration('urlJson')])){
@@ -407,6 +409,7 @@ public function execute($_options = null) {
407409
if($this->getType() == 'info'){
408410
return (is_array($json)) ? json_encode($json) : $json;
409411
}
412+
break;
410413
case 'html':
411414
$request = str_replace('"', '', $request);
412415
if($this->getType() == 'info' && isset(script::$_requet_cache[$this->getConfiguration('urlHtml')])){
@@ -429,6 +432,7 @@ public function execute($_options = null) {
429432
if($this->getType() == 'info'){
430433
return pq(trim($request))->html();
431434
}
435+
break;
432436
}
433437
if ($this->getType() == 'action') {
434438
script::$_requet_cache = array();

0 commit comments

Comments
 (0)