Ticket #10142: mythweb-php-warning-pt2.patch

File mythweb-php-warning-pt2.patch, 629 bytes (added by Philipp Wagner <mail@…>, 6 years ago)

Fixing same problem in detail.php

  • modules/tv/detail.php

    diff --git a/modules/tv/detail.php b/modules/tv/detail.php
    index 2eaaa52..a9814a8 100644
    a b  
    307307
    308308// Parse the list of scheduled recordings for possible conflicts
    309309    $conflicting_shows = array();
    310     foreach (Schedule::findScheduled() as $callsign => $shows) {
     310    $scheduled = Schedule::findScheduled();
     311    if (empty($scheduled)) {
     312        $scheduled = array();
     313    }
     314
     315    foreach ($scheduled as $callsign => $shows) {
    311316    // Now the shows in this channel
    312317        foreach ($shows as $starttime => &$show_group) {
    313318        // Clearly not a match