fix a bug : func is not yet filled before calling Call

This commit is contained in:
Gilles Crettenand
2015-05-28 10:37:53 +02:00
parent 2281c9a534
commit 47f9ce93be

View File

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