fix a bug : func is not yet filled before calling Call
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user