Ticket #2272: mythweb-notlisted2.diff

File mythweb-notlisted2.diff, 1.0 KB (added by bjm, 18 years ago)

Fix some errors in the earlier example patch.

  • includes/programs.php

     
    187187            elseif ($frac >= .25)
    188188                $data['starstring'] .= '¼';
    189189        // This program has already been loaded, and is attached to a recording schedule
    190             if ($Scheduled_Recordings[$data['channum']][$data['starttime_unix']]) {
     190            $tmpprog = $Scheduled_Recordings[$data['channum']][$data['starttime_unix']][0];
     191            if ($tmpprog->title == $data['title']) {
    191192                $program =& $Scheduled_Recordings[$data['channum']][$data['starttime_unix']][0];
    192193            // merge in data fetched from DB
    193194                $program->merge(new Program($data));
     
    211212            $channel_hash[$data['chanid']]->programs[] =& $program;
    212213        // Cleanup
    213214            unset($program);
     215            unset($tmpprog);
    214216        }
    215217    // Cleanup
    216218        $sh3->finish();