diff -rU 8 mythweb-orig/modules/tv/channel.php mythweb/modules/tv/channel.php
|
old
|
new
|
|
| 18 | 18 | |
| 19 | 19 | // Chanid? |
| 20 | 20 | $this_channel =& Channel::find($_REQUEST['chanid']); |
| 21 | 21 | |
| 22 | 22 | // New list date? |
| 23 | 23 | if ($_REQUEST['date']) { |
| 24 | 24 | if (strlen($_REQUEST['date']) == 8) |
| 25 | 25 | $_REQUEST['date'] = unixtime(sprintf('%08d000000', $_REQUEST['date'])); |
| 26 | | $_SESSION['list_time'] = $_REQUEST['date']; |
| | 26 | $_SESSION['list_time'] = $_REQUEST['date'] - date('Z',$_REQUEST['date']); |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | // No channel found |
| 30 | 30 | if (!$_REQUEST['chanid'] || !$this_channel->chanid) { |
| 31 | 31 | redirect_browser(root_url.'tv/list'); |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | // Load the programs for today |