Ticket #11259: web.patch

File web.patch, 2.0 KB (added by doug@…, 14 years ago)
  • modules/tv/recorded.php

    diff --git a/modules/tv/recorded.php b/modules/tv/recorded.php
    index 56ac6d4..d2cd413 100644
    a b  
    2626            if (($_SESSION['recorded_title'] == $row[0]) || ($_SESSION['recorded_title'] == ''))
    2727                $prev_row++;
    2828        // This row isn't the one we're looking for
    29             if ($row[6] != $_REQUEST['chanid'] || $row[25] != $_REQUEST['starttime'])
     29            if ($row[7] != $_REQUEST['chanid'] || $row[26] != $_REQUEST['starttime'])
    3030                continue;
    3131        // Delete the recording
    3232            MythBackend::find()->sendCommand(array($backendstr, implode(MythBackend::$backend_separator, $row), '0'));
     
    8787            $Total_Programs++;
    8888            $Groups[$record[29]]++;
    8989        // Hide LiveTV  and Deleted recordings from the title list
    90             if (($_REQUEST['recgroup'] && $_REQUEST['recgroup'] == $record[28]) || (!$_REQUEST['recgroup'] && $record[28] != 'LiveTV' && $record[28] != 'Deleted'))
     90            if (($_REQUEST['recgroup'] && $_REQUEST['recgroup'] == $record[29]) || (!$_REQUEST['recgroup'] && $record[29] != 'LiveTV' && $record[29] != 'Deleted'))
    9191                $Program_Titles[$record[0]]++;
    9292        // Skip files with no chanid
    9393            if (!$record[6])
     
    9595        // Skip programs the user doesn't want to look at
    9696            if ($_REQUEST['title'] && $_REQUEST['title'] != $record[0])
    9797                continue;
    98             if ($_REQUEST['recgroup'] && $_REQUEST['recgroup'] != $record[28])
     98            if ($_REQUEST['recgroup'] && $_REQUEST['recgroup'] != $record[29])
    9999                continue;
    100100        // Hide LiveTV recordings from the default view
    101             if (empty($_REQUEST['recgroup']) && ($record[28] == 'LiveTV' || $record[28] == 'Deleted'))
     101            if (empty($_REQUEST['recgroup']) && ($record[29] == 'LiveTV' || $record[29] == 'Deleted'))
    102102                continue;
    103103        // Make sure that everything we're dealing with is an array
    104104            if (!is_array($Programs[$record[0]]))