diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-09-05 18:57:58 -0700 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-09-05 18:57:58 -0700 |
commit | 532ea3b8685cb141526fbcd2cd3dd13667452783 (patch) | |
tree | 176e55dc2c4b4fd7b5673d27454200dcc909dad3 /vendor/JsonRPC/Client.php | |
parent | a0dcfc9e4ce373b7d491c9dd1902a87d41523bf0 (diff) |
Start to improve task Api operations and doc
Diffstat (limited to 'vendor/JsonRPC/Client.php')
-rw-r--r-- | vendor/JsonRPC/Client.php | 15 |
1 files changed, 1 insertions, 14 deletions
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 @@ -28,14 +28,6 @@ class Client private $timeout; /** - * Debug flag - * - * @access private - * @var bool - */ - private $debug; - - /** * Username for authentication * * @access private @@ -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; } |