Ticket #9720: schedules_manual.php.diff

File schedules_manual.php.diff, 926 bytes (added by lantzer@…, 13 years ago)
  • schedules_manual.php

    old new  
    2121        $schedule =& Schedule::find($_GET['recordid']);
    2222    // Not a manual schedule
    2323        if (empty($schedule->search) || $schedule->search != searchtype_manual)
    24             redirect_browser('tv/schedules');
     24            redirect_browser(root_url.'tv/schedules');
    2525    }
    2626// Create a new, empty schedule
    2727    else
     
    176176        $Channel_list = Channel::getChannelList();
    177177        echo '<select name="channel">';
    178178        $seen = array();
    179         foreach ($Channel_list as $chanid) {
    180             $channel =& Channel::find($chanid);
     179        foreach ($Channel_list as $this_chanid) {
     180            $channel =& Channel::find($this_chanid);
    181181
    182182        // Print the option
    183183            echo '<option value="', $channel->chanid, '"',