Ticket #12364: 0026-ticket123xx-mythweb-update-after-8c466bc.patch

File 0026-ticket123xx-mythweb-update-after-8c466bc.patch, 2.1 KB (added by warpme@…, 9 years ago)
  • mythplugins/mythweb/modules/tv/classes/Program.php

    diff -Naur mythtv-master-20150129-gc7638ce-old/mythplugins/mythweb/modules/tv/classes/Program.php mythtv-master-20150129-gc7638ce-new/mythplugins/mythweb/modules/tv/classes/Program.php
    old new  
    212212    // Get the name of the input
    213213        if ($this->inputid) {
    214214            $this->inputname = $db->query_col('SELECT displayname
    215                                                  FROM cardinput
    216                                                 WHERE cardinputid=?',
     215                                                 FROM capturecard
     216                                                WHERE cardid=?',
    217217                                              $this->inputid);
    218218        }
    219219        else {
  • mythplugins/mythweb/modules/tv/includes/schedule_utils.php

    diff -Naur mythtv-master-20150129-gc7638ce-old/mythplugins/mythweb/modules/tv/includes/schedule_utils.php mythtv-master-20150129-gc7638ce-new/mythplugins/mythweb/modules/tv/includes/schedule_utils.php
    old new  
    3030    // Gather the data
    3131        if (empty($inputs)) {
    3232            global $db;
    33             $sh = $db->query('SELECT cardinputid,
     33            $sh = $db->query('SELECT cardid,
    3434                                     IF(LENGTH(IFNULL(displayname,"")) > 0,
    3535                                        displayname,
    3636                                        CONCAT(cardid, ":", inputname)
    3737                                       ) AS name
    38                                 FROM cardinput
     38                                FROM capturecard
    3939                            ORDER BY name');
    4040            while (list($id, $name) = $sh->fetch_row()) {
    4141                $inputs[$id] = $name;