From a8e44d74890b612813e91e1b1abf245826860429 Mon Sep 17 00:00:00 2001 From: Sascha Volkenandt Date: Thu, 4 Jan 2007 13:12:05 +0000 Subject: - added check for LastChannel-option --- pages/whats_on_next.ecpp | 3 ++- pages/whats_on_now.ecpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/whats_on_next.ecpp b/pages/whats_on_next.ecpp index 5e6d5a6..22df5df 100644 --- a/pages/whats_on_next.ecpp +++ b/pages/whats_on_next.ecpp @@ -4,6 +4,7 @@ #include #include #include +#include "setup.h" #include "tools.h" using namespace vdrlive; @@ -34,7 +35,7 @@ const cSchedules* Schedules = cSchedules::Schedules(schedulesLock); <{ - for (cChannel *Channel = Channels.First(); Channel; Channel = Channels.Next(Channel)) { + for (cChannel *Channel = Channels.First(); Channel && Channel->Number() <= LiveSetup().GetLastChannel(); Channel = Channels.Next(Channel)) { if (!Channel->GroupSep()) { const cSchedule *Schedule = Schedules->GetSchedule(Channel); if (Schedule) { diff --git a/pages/whats_on_now.ecpp b/pages/whats_on_now.ecpp index 8073fa9..e0a2ba1 100644 --- a/pages/whats_on_now.ecpp +++ b/pages/whats_on_now.ecpp @@ -4,6 +4,7 @@ #include #include #include +#include "setup.h" #include "tools.h" using namespace vdrlive; @@ -34,7 +35,7 @@ const cSchedules* Schedules = cSchedules::Schedules(schedulesLock); <{ - for (cChannel *Channel = Channels.First(); Channel; Channel = Channels.Next(Channel)) { + for (cChannel *Channel = Channels.First(); Channel && Channel->Number() <= LiveSetup().GetLastChannel(); Channel = Channels.Next(Channel)) { if (!Channel->GroupSep()) { const cSchedule *Schedule = Schedules->GetSchedule(Channel); if (Schedule) { -- cgit v1.2.3