Ticket #7330: mythweb.patch

File mythweb.patch, 1.1 KB (added by Mark Edwards <mythtv-trac@…>, 10 years ago)
  • modules/tv/includes/programs.php

     
    135136                         channel.callsign,
    136137                         channel.channum
    137138                  FROM program
    138                        LEFT JOIN programrating USING (chanid, starttime)
    139                        LEFT JOIN channel ON program.chanid = channel.chanid
    140                        LEFT JOIN credits ON (program.chanid = credits.chanid AND program.starttime = credits.starttime)
    141                        LEFT JOIN people ON (credits.person = people.person)
    142                  WHERE';
     139                       INNER JOIN channel ON program.chanid = channel.chanid
     140                       LEFT JOIN programrating on programrating.chanid = channel.chanid AND programrating.starttime = program.starttime
     141                 WHERE channel.visible=1 AND ';
    143142    // Only loading a single channel worth of information
    144143        if ($chanid > 0)
    145144            $query .= ' program.chanid='.$db->escape($chanid);