small fix
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 25 Oct 2007 16:35:50 +0000 (16:35 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 25 Oct 2007 16:35:50 +0000 (16:35 +0000)
lib/python/Components/EpgList.py

index 52fd919..0c4290d 100644 (file)
@@ -232,7 +232,7 @@ class EPGList(HTMLComponent, GUIComponent):
                if len(self.list):
                        if type == 1:
                                event_id = self.getSelectedEventId()
                if len(self.list):
                        if type == 1:
                                event_id = self.getSelectedEventId()
-                               self.list.sort(key=lambda x: (x[4].lower(), x[2]))
+                               self.list.sort(key=lambda x: (x[4] and x[4].lower(), x[2]))
                                self.l.setList(self.list)
                                self.moveToEventId(event_id)
                        else:
                                self.l.setList(self.list)
                                self.moveToEventId(event_id)
                        else: