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

master
Gilles Crettenand 11 years ago
parent 2281c9a534
commit 47f9ce93be

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

Loading…
Cancel
Save