Ticket #10142: mythweb-php-warning.patch

File mythweb-php-warning.patch, 617 bytes (added by Philipp Wagner <mail@…>, 14 years ago)
  • modules/tv/upcoming.php

    diff --git a/modules/tv/upcoming.php b/modules/tv/upcoming.php
    index 6a283fb..84e9b7d 100644
    a b  
    8888    $all_shows = array();
    8989    $Groups = array();
    9090    $Program_Titles = array();
     91    $scheduled = Schedule::findScheduled();
    9192    if (empty($scheduled)) {
    9293        $scheduled = array();
    9394    }
    9495
    95     foreach (Schedule::findScheduled() as $callsign => $shows) {
     96    foreach ($scheduled as $callsign => $shows) {
    9697    // Now the shows in this channel
    9798        foreach ($shows as $starttime => $show_group) {
    9899        // Parse each show group