fix issue where result was also top level in returned json

This commit is contained in:
Gilles Crettenand
2015-05-29 11:20:31 +02:00
parent 72ef14ad93
commit 3e773bd32a

View File

@@ -30,8 +30,8 @@ abstract class WebService
$data = array();
try {
$data = $this->Call();
$data["result"][$this->func] = $data;
$result = $this->Call();
$data["result"][$this->func] = $result;
} catch (WebException $e) {
$data["error"]["code"] = $e->getCode();
$data["error"]["name"] = $e->getName();