diff --git a/lib/Client.php b/lib/Client.php index 0c4476e..7124055 100644 --- a/lib/Client.php +++ b/lib/Client.php @@ -16,6 +16,14 @@ public function __construct($host, $port, $back = null) public function send($func, $args) { + if (!is_array($args)) { + if ($args == NULL) { + $args = array(); + } else { + $args = array($args); + } + } + $host = $this->host; $port = $this->port; $code = 0;