finished first "alpha" version of PHP-P10 v2
[PHP-P10.git] / Uplink / Uplink.class.php
index 867cb8587da7e40752c344a007e31276685a717d..14585f6901fc5a7b11b253ad7a97b299c1143358 100644 (file)
@@ -543,7 +543,7 @@ class Uplink {
                        return;
                }
                if($this->eventHandler) {
-                       if($args[0] == "#") {
+                       if($args[0][0] == "#") {
                                $channel = P10_Channel::getChannelByName($args[0]);
                                if($channel == null)
                                        $channel = new P10_Channel($args[0]);
@@ -566,7 +566,7 @@ class Uplink {
                        return;
                }
                if($this->eventHandler) {
-                       if($args[0] == "#") {
+                       if($args[0][0] == "#") {
                                $channel = P10_Channel::getChannelByName($args[0]);
                                if($channel == null)
                                        $channel = new P10_Channel($args[0]);