From: pk910 Date: Tue, 26 Jul 2011 09:00:04 +0000 (+0200) Subject: use the P10Formatter even if there are no parameters to build a command X-Git-Url: http://git.pk910.de/?p=PHP-P10.git;a=commitdiff_plain;h=7b5d14ab67eadfdb5cc9f062610ae2dd1b9e53af use the P10Formatter even if there are no parameters to build a command --- diff --git a/Uplink/Uplink.class.php b/Uplink/Uplink.class.php index 8174790..7cd1d77 100644 --- a/Uplink/Uplink.class.php +++ b/Uplink/Uplink.class.php @@ -216,6 +216,8 @@ class Uplink { if(func_num_args() > 1) { $args = array_slice(func_get_args(), 1); $command = P10Formatter::formatCMD($this->getSetting("numeric"), $command, $args); + } else { + $command = P10Formatter::formatCMD($this->getSetting("numeric"), $command, array()); } $this->client->send($command); }