From 7b5d14ab67eadfdb5cc9f062610ae2dd1b9e53af Mon Sep 17 00:00:00 2001 From: pk910 Date: Tue, 26 Jul 2011 11:00:04 +0200 Subject: [PATCH] use the P10Formatter even if there are no parameters to build a command --- Uplink/Uplink.class.php | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.20.1