Ticket #12713: 0001-unbreak-don-t-record.patch

File 0001-unbreak-don-t-record.patch, 1.9 KB (added by Karl Egly, 3 years ago)
  • modules/tv/classes/Program.php

    From 93546fc5890f7027aa95c70091183092a8872459 Mon Sep 17 00:00:00 2001
    From: Karl Dietz <dekarl@mythtv.org>
    Date: Tue, 19 Apr 2016 08:13:37 +0200
    Subject: [PATCH 1/4] unbreak "don't record"
    
    Refs #12713
    ---
     modules/tv/classes/Program.php | 4 +++-
     1 file changed, 3 insertions(+), 1 deletion(-)
    
    diff --git a/modules/tv/classes/Program.php b/modules/tv/classes/Program.php
    index 57ce447..2389e05 100644
    a b class Program extends MythBase { 
    629629 **/
    630630    public function rec_never_record() {
    631631        global $db;
    632         $sh = $db->query('REPLACE INTO oldrecorded (chanid,starttime,endtime,title,subtitle,description,category,seriesid,programid,recordid,station,rectype,recstatus,duplicate) VALUES ('
     632        $sh = $db->query('REPLACE INTO oldrecorded (chanid,starttime,endtime,title,subtitle,description,season,episode,category,seriesid,programid,recordid,station,rectype,recstatus,duplicate) VALUES ('
    633633                                .escape($this->chanid)                    .','
    634634                                .'NOW()'                                  .','
    635635                                .'NOW()'                                  .','
    636636                                .escape($this->title)                     .','
    637637                                .escape($this->subtitle)                  .','
    638638                                .escape($this->description)               .','
     639                                .escape(isset($this->season) ? $this->season ? 0) .','
     640                                .escape(isset($this->episode) ? $this->episode ? 0) .','
    639641                                .escape($this->category)                  .','
    640642                                .escape($this->seriesid)                  .','
    641643                                .escape($this->programid)                 .','