diff -Naur modules.orig/tv/classes/Schedule.php modules/tv/classes/Schedule.php
old
|
new
|
|
205 | 205 | } |
206 | 206 | // Data is a recordid -- load its contents |
207 | 207 | if (!is_array($data) && $data > 0) { |
208 | | $data = $db->query_assoc('SELECT *, IF(type='.rectype_always.',-1,chanid) AS chanid, |
| 208 | $data = $db->query_assoc('SELECT *, |
209 | 209 | UNIX_TIMESTAMP(startdate)+TIME_TO_SEC(starttime) AS starttime, |
210 | 210 | UNIX_TIMESTAMP(enddate)+TIME_TO_SEC(endtime) AS endtime |
211 | 211 | FROM record |
diff -Naur modules.orig/tv/tmpl/default/schedules.php modules/tv/tmpl/default/schedules.php
old
|
new
|
|
95 | 95 | $urlstr = 'recordid='.$schedule->recordid; |
96 | 96 | |
97 | 97 | $css_class = ($schedule->type == rectype_dontrec ? 'deactivated' : 'scheduled'); |
98 | | // If this is an 'always on any channel' or 'find one' recording w/o a channel, set the channel name to 'Any' |
99 | | if ($schedule->type == rectype_always || ($schedule->type == rectype_findone && !preg_match('/\\S/', $schedule->channel->channum))) |
| 98 | // If this is an 'always on any channel' or 'find one' recording without the 'This Channel' filter, set the channel name to 'Any' |
| 99 | if (($schedule->type == rectype_always || $schedule->type == rectype_findone) && !($schedule->filter & (1 << 10))) { |
100 | 100 | $schedule->channel->name = '[ '.t('Any').' ]'; |
| 101 | $schedule->channel->channum = 0; |
| 102 | } |
101 | 103 | // A program id counter for popup info |
102 | 104 | if ($_SESSION["show_popup_info"]) { |
103 | 105 | static $program_id_counter = 0; |
diff -Naur modules.orig/tv/tmpl/lite/schedules.php modules/tv/tmpl/lite/schedules.php
old
|
new
|
|
53 | 53 | $urlstr = 'recordid='.$schedule->recordid; |
54 | 54 | |
55 | 55 | $css_class = ($schedule->type == rectype_dontrec ? 'deactivated' : 'scheduled'); |
56 | | // If this is an 'always on any channel' or 'find one' recording w/o a channel, set the channel name to 'Any' |
57 | | if ($schedule->type == rectype_always || ($schedule->type == rectype_findone && !preg_match('/\\S/', $schedule->channel->channum))) |
| 56 | // If this is an 'always on any channel' or 'find one' recording without the 'This Channel' filter, set the channel name to 'Any' |
| 57 | if (($schedule->type == rectype_always || $schedule->type == rectype_findone) && !($schedule->filter & (1 << 10))) { |
58 | 58 | $schedule->channel->name = '[ '.t('Any').' ]'; |
| 59 | $schedule->channel->channum = 0; |
| 60 | } |
59 | 61 | |
60 | 62 | // Print a dividing row if grouping changes |
61 | 63 | if ($group_field == 'type') |