From 532ea3b8685cb141526fbcd2cd3dd13667452783 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Fri, 5 Sep 2014 18:57:58 -0700 Subject: Start to improve task Api operations and doc --- vendor/JsonRPC/Client.php | 15 +-------------- vendor/JsonRPC/Server.php | 2 +- 2 files changed, 2 insertions(+), 15 deletions(-) (limited to 'vendor') diff --git a/vendor/JsonRPC/Client.php b/vendor/JsonRPC/Client.php index bbdb7200..dda78094 100644 --- a/vendor/JsonRPC/Client.php +++ b/vendor/JsonRPC/Client.php @@ -27,14 +27,6 @@ class Client */ private $timeout; - /** - * Debug flag - * - * @access private - * @var bool - */ - private $debug; - /** * Username for authentication * @@ -69,14 +61,12 @@ class Client * @access public * @param string $url Server URL * @param integer $timeout Server URL - * @param bool $debug Debug flag * @param array $headers Custom HTTP headers */ - public function __construct($url, $timeout = 5, $debug = false, $headers = array()) + public function __construct($url, $timeout = 5, $headers = array()) { $this->url = $url; $this->timeout = $timeout; - $this->debug = $debug; $this->headers = array_merge($this->headers, $headers); } @@ -133,9 +123,6 @@ class Client if (isset($result['id']) && $result['id'] == $id && array_key_exists('result', $result)) { return $result['result']; } - else if ($this->debug && isset($result['error'])) { - print_r($result['error']); - } return null; } diff --git a/vendor/JsonRPC/Server.php b/vendor/JsonRPC/Server.php index 93d46cdb..f80531fd 100644 --- a/vendor/JsonRPC/Server.php +++ b/vendor/JsonRPC/Server.php @@ -177,7 +177,7 @@ class Server $params[$name] = $request_params[$name]; } else if ($p->isDefaultValueAvailable()) { - continue; + $params[$name] = $p->getDefaultValue(); } else { return false; -- cgit v1.2.3