Ticket #5413: patch.patch

File patch.patch, 1.2 KB (added by twilley@…, 12 years ago)
  • mythweb/modules/tv/tmpl/default/list_data.php

     
    4545
    4646        $timeslot_anchor    = 0;
    4747        $channel_count      = 0;
    48         $displayed_channels = array();
    49 
     48        $prev_channum       = 0;
     49        $prev_callsign      - "";
    5050    // Go through each channel and load/print its info - use references to avoid "copy" overhead
    5151        foreach ($Callsigns as $chanid) {
    5252            $channel = $Channels[$chanid];
     
    5858                continue;
    5959            }
    6060        // Skip already-displayed channels
    61             if ($displayed_channels[$channel->channum])
    62                 continue;
    63             $displayed_channels[$channel->channum] = 1;
     61            if($prev_channum == $channel->channum && $prev_callsign == $channel->callsign) {
     62                $prev_callsign = $channel->callsign;
     63                $prev_channum = $channel->channum;
     64                continue;
     65            }
     66            $prev_callsign = $channel->callsign;
     67            $prev_channum = $channel->channum;
    6468        // Display the timeslot bar?
    6569            if ($channel_count % timeslotbar_skip == 0) {
    6670            // Update the timeslot anchor