use the P10Formatter even if there are no parameters to build a command
authorpk910 <philipp@zoelle1.de>
Tue, 26 Jul 2011 09:00:04 +0000 (11:00 +0200)
committerpk910 <philipp@zoelle1.de>
Tue, 26 Jul 2011 09:00:04 +0000 (11:00 +0200)
Uplink/Uplink.class.php

index 8174790753541f9af06c7843dcfb016072766434..7cd1d77b601a70a77abdb22ce5bc359c45f7e50e 100644 (file)
@@ -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);
        }