diff options
-rw-r--r-- | pages/channels_widget.ecpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pages/channels_widget.ecpp b/pages/channels_widget.ecpp index 5bfe490..fed7483 100644 --- a/pages/channels_widget.ecpp +++ b/pages/channels_widget.ecpp @@ -23,11 +23,9 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); ReadLock channelsLock( Channels ); if ( !channelsLock ) throw HtmlError( tr("Couldn't aquire access to channels, please try again later.") ); - - int lastChannel = LiveSetup().GetLastChannel(); </%cpp> <select name="<$ name $>" id="<$ name $>" <{ reply.out() << ( !onchange.empty() ? "onchange=\""+onchange+"\"" : "" ); }>> -% for ( cChannel *listChannel = Channels.First(); listChannel && listChannel->Number() <= lastChannel; listChannel = Channels.Next( listChannel ) ) { +% for ( cChannel *listChannel = Channels.First(); listChannel; listChannel = Channels.Next( listChannel ) ) { % if ( listChannel->GroupSep() || *listChannel->Name() == '\0' ) % continue; % |