Ticket #7710: mythweb_set_keys.patch

File mythweb_set_keys.patch, 1.8 KB (added by stichnot@…, 14 years ago)
  • mythweb/modules/tv/classes/Program.php

     
    703703                                .escape($this->category)                  .','
    704704                                .escape($this->seriesid)                  .','
    705705                                .escape($this->programid)                 .','
    706                                 .escape($this->recordid)                  .','
     706                                .escape(isset($this->recordid) ? $this->recordid : 0)                  .','
    707707                                .escape($this->channel->callsign)         .','
    708                                 .escape($this->rectype)                   .','
     708                                .escape(isset($this->rectype) ? $this->rectype : 0)                   .','
    709709                                .'11'                                     .','
    710710                                .'1'                                      .')')
    711711            or trigger_error('SQL Error: '.mysql_error(), FATAL);
  • mythweb/modules/mythtv/set_keys.php

     
    7575    $sh = $db->query('SELECT *
    7676                        FROM keybindings
    7777                       WHERE hostname = ?
    78                     ORDER BY (context = "Global") DESC, context',
     78                    ORDER BY (context = "Global") DESC, context, action',
    7979                     $_SESSION['settings']['host']);
    8080    while ($row = $sh->fetch_assoc()) {
    8181        $Keys[] = $row;