diff --git a/modules/tv/upcoming.php b/modules/tv/upcoming.php
index 6a283fb..84e9b7d 100644
--- a/modules/tv/upcoming.php
+++ b/modules/tv/upcoming.php
@@ -88,11 +88,12 @@
     $all_shows = array();
     $Groups = array();
     $Program_Titles = array();
+    $scheduled = Schedule::findScheduled();
     if (empty($scheduled)) {
         $scheduled = array();
     }
 
-    foreach (Schedule::findScheduled() as $callsign => $shows) {
+    foreach ($scheduled as $callsign => $shows) {
     // Now the shows in this channel
         foreach ($shows as $starttime => $show_group) {
         // Parse each show group
