diff --git a/modules/tv/upcoming.php b/modules/tv/upcoming.php
index 6a283fb..84e9b7d 100644
a
|
b
|
|
88 | 88 | $all_shows = array(); |
89 | 89 | $Groups = array(); |
90 | 90 | $Program_Titles = array(); |
| 91 | $scheduled = Schedule::findScheduled(); |
91 | 92 | if (empty($scheduled)) { |
92 | 93 | $scheduled = array(); |
93 | 94 | } |
94 | 95 | |
95 | | foreach (Schedule::findScheduled() as $callsign => $shows) { |
| 96 | foreach ($scheduled as $callsign => $shows) { |
96 | 97 | // Now the shows in this channel |
97 | 98 | foreach ($shows as $starttime => $show_group) { |
98 | 99 | // Parse each show group |