X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=Uplink%2FUplink.class.php;h=cd6e49bf492e52d52914fdd98b2dd133ed7f7671;hb=2ccc33c2d482035ba66316fd7dc9592bc2e2db7d;hp=5c86c95b6afb0d6e183892e85b9d190b63a9e9e9;hpb=455040407c031d33129808462d42414c577863b4;p=PHP-P10.git diff --git a/Uplink/Uplink.class.php b/Uplink/Uplink.class.php index 5c86c95..cd6e49b 100644 --- a/Uplink/Uplink.class.php +++ b/Uplink/Uplink.class.php @@ -344,7 +344,7 @@ class Uplink { $name = $args[0]; $create_time = $args[1]; $channel = P10_Channel::getChannelByName($name); - if($name == null) + if($channel == null) $channel = new P10_Channel($name); $modes = $channel->getModes(); $userstr = $args[count($args)-1]; @@ -358,11 +358,11 @@ class Uplink { $userstr = $args[count($args)-2]; $modeparamcount--; } - $users = explode(":",$userstr); + $users = explode(",",$userstr); $isop = false; $isvoice = false; foreach($users as $user) { $uexp = explode(":", $user); - if(strlen($uexp[0]) != 6) { + if(strlen($uexp[0]) != 5) { trigger_error("burst parse error: '".$uexp[0]."' is not an user numeric.", E_USER_ERROR); return; }