diff --git a/api/ui/results.php b/api/ui/results.php index ea4619e6af..622de42e6e 100644 --- a/api/ui/results.php +++ b/api/ui/results.php @@ -69,14 +69,9 @@ public function get() { } break; case 'up': - $arr = $this->getData(); - if ($arr === null) { - echo "is nunll"; - break; - } - foreach ($arr as $key => $value) { - echo $key . ": " . $value . "\n"; - } + $system = new System($this->get['systemId']); + $arr = $system->getResultsAll(); + echo $arr; break; case 'down': echo 'down'; diff --git a/core/api.php b/core/api.php index 9f7447f015..0deb1c6484 100644 --- a/core/api.php +++ b/core/api.php @@ -69,7 +69,7 @@ public function set() { throw new Exception('The action SET is not defined!'); } public function setData($rearrangeddata) { - $this->data->content = $rearrangeddata; + $this->data = $rearrangeddata; } public function getData() { return $this->data;