<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    So I was noticing that NCIS: Los Angeles would not show up in
    'Upcoming Recordings'.&nbsp; After a little investigative work, I've
    found the source of the problem but don't know why.
    <br>
    <br>
    Snippet of function causing the problem:&nbsp;
    /var/www/localhost/htdocs/mythweb/modules/tv/classes/Schedule.php
    <br>
    <br>
    &nbsp;&nbsp;&nbsp; public static function &amp;findScheduled() {
    <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (is_null(self::$scheduledRecordings))
    <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self::$scheduledRecordings =&amp;
    Cache::get('Schedule::findScheduled');
    <br>
    <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (is_null(self::$scheduledRecordings)) {
    <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; foreach
    (MythBackend::find()-&gt;queryProgramRows('QUERY_GETALLPENDING', 2)
    as $key =&gt; $program) {
    <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($key === 'offset')
    <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; continue;
    <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($program[21] == 6) &lt;---------------------
    THIS IS THE FAILURE POINT
    <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; continue;
    <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Normal entry:&nbsp;
    $scheduledRecordings[callsign][starttime][]
    <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    self::$scheduledRecordings[$program[8]][$program[12]][] =&amp; new
    Program($program);
    <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #printf('
    <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }
    <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cache::set('Schedule::findScheduled',
    self::$scheduledRecordings);
    <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }
    <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return self::$scheduledRecordings;
    <br>
    &nbsp;&nbsp;&nbsp; }
    <br>
    <br>
    <br>
    $program[21] related to RECORDID value coming from the RECORD
    table.&nbsp; Checking the table, indeed the NCIS:Los Angeles does have a
    value of 6 for the recordid column.
    <br>
    <br>
    Why would it be choosing to ignore any recordings where RECORDID
    equals a value of 6?
    <br>
    Is the code above wrong?
    <br>
    <br>
    -JK<em></em>
  </body>
</html>