Joining invalid channel name exception fix #308
authorDarren <darren@darrenwhitlen.com>
Thu, 20 Jun 2013 21:15:02 +0000 (22:15 +0100)
committerDarren <darren@darrenwhitlen.com>
Thu, 20 Jun 2013 21:15:02 +0000 (22:15 +0100)
client/assets/src/models/application.js

index 79f23101af5149efff6aae156396619d0c718545..a3be59caf09513592a96066beb8a7c29a7ec9b35 100644 (file)
@@ -607,7 +607,7 @@ _kiwi.model.Application = function () {
             panels = that.connections.active_connection.createAndJoinChannels(channel_names);\r
 \r
             // Show the last channel if we have one\r
-            if (panels)\r
+            if (panels.length)\r
                 panels[panels.length - 1].view.show();\r
         }\r
 \r