Ticket #1054: mythweb.oldrecorded.2.diff

File mythweb.oldrecorded.2.diff, 3.6 KB (added by Robert Tsai <rtsai1111>, 20 years ago)

change tabs to spaces

  • config/conf.php

     
    9696    The following constants are defined for the recorded programs page
    9797
    9898*/
    99     define('show_recorded_pixmaps', true);
     99    define('show_recorded_pixmaps', false);
    100100
    101101/*
    102102
  • includes/programs.php

     
    128128                  FROM program
    129129                       LEFT JOIN programrating USING (chanid, starttime)
    130130                       LEFT JOIN oldrecorded
    131                                  ON LENGTH(IFNULL(oldrecorded.seriesid, "")) > 0
    132                                     AND LENGTH(IFNULL(oldrecorded.programid, "")) > 0
    133                                     AND oldrecorded.programid = program.programid
    134                                     AND oldrecorded.seriesid  = program.seriesid
     131                                 ON oldrecorded.programid = program.programid
     132                                    AND oldrecorded.seriesid = program.seriesid
     133                                    AND (oldrecorded.recstatus = -3
     134                                        OR ((LENGTH(IFNULL(oldrecorded.seriesid, "")) > 0
     135                                        AND LENGTH(IFNULL(oldrecorded.programid, "")) > 0)))
    135136                 WHERE';
    136137    // Only loading a single channel worth of information
    137138        if ($chanid > 0)
     
    299300            #$this->inputid        = $data[19];
    300301            $this->recpriority     = $data[20];
    301302            $this->recstatus       = $data[21];
    302             $this->conflicting     = ($this->recstatus == 'Conflict');   # conflicts with another scheduled recording?
    303             $this->recording       = ($this->recstatus == 'WillRecord'); # scheduled to record?
    304303            $this->recordid        = $data[22];
    305304            $this->rectype         = $data[23];
    306305            $this->dupin           = $data[24];
     
    366365            }
    367366        }
    368367    // Turn recstatus into a word
    369         if (isset($this->recstatus) && $GLOBALS['RecStatus_Types'][$this->recstatus])
     368        if (isset($this->recstatus) && $GLOBALS['RecStatus_Types'][$this->recstatus]) {
     369
    370370            $this->recstatus = $GLOBALS['RecStatus_Types'][$this->recstatus];
     371            $this->conflicting     = ($this->recstatus == 'Conflict');   # conflicts with another scheduled recording?
     372            $this->recording       = ($this->recstatus == 'WillRecord'); # scheduled to record?
     373        }
    371374    // No longer a null column, so check for blank entries
    372375        if ($this->airdate == '0000-00-00')
    373376            $this->airdate = NULL;
  • modules/tv/upcoming.php

     
    6767             || $_SESSION['scheduled_recordings']['disp_deactivated']
    6868             || $_SESSION['scheduled_recordings']['disp_conflicts'])) {
    6969        $_SESSION['scheduled_recordings'] = array('disp_scheduled'   => true,
    70                                                   'disp_duplicates'  => true,
    71                                                   'disp_deactivated' => true,
     70                                                  'disp_duplicates'  => false,
     71                                                  'disp_deactivated' => false,
    7272                                                  'disp_conflicts'   => true
    7373                                                 );
    7474    }