From: pk910 Date: Mon, 1 Aug 2011 18:47:03 +0000 (+0200) Subject: fixed small burst parsing bug X-Git-Url: http://git.pk910.de/?p=PHP-P10.git;a=commitdiff_plain;h=e600821cfb2379771499f3bad6cf427e40af01a7;hp=b4929d2fc7944f7b3d0efc666a2bff0cd7f821cb fixed small burst parsing bug --- diff --git a/Uplink/Uplink.class.php b/Uplink/Uplink.class.php index 5e1e1ee..a5cc2eb 100644 --- a/Uplink/Uplink.class.php +++ b/Uplink/Uplink.class.php @@ -407,6 +407,10 @@ class Uplink { private function recv_burst($from, $args) { $name = $args[0]; $create_time = $args[1]; + if(count($args) == 2) { + //we've got an empty channel without any modes set??? dead channel! + return; + } $channel = P10_Channel::getChannelByName($name); if($channel == null) $channel = new P10_Channel($name);