[mythtv-commits] Ticket #3939: Channel detail page defalt date value missing

MythTV mythtv at cvs.mythtv.org
Sat Sep 8 04:30:40 UTC 2007


#3939: Channel detail page defalt date value missing
-----------------------+----------------------------------------------------
 Reporter:  anonymous  |       Owner:  xris   
     Type:  defect     |      Status:  new    
 Priority:  minor      |   Milestone:  unknown
Component:  mythweb    |     Version:  0.20   
 Severity:  low        |     Mlocked:  0      
-----------------------+----------------------------------------------------
 if you click on a channel from the listings page you will get a error
 because of negative values for a date.  around line 38 in ... last_time is
 set but if the 'date' post or get value is not set the variable is
 -1(false).  I fixed it on my box by changing

 // New list date?
     $_GET['date'] or $_GET['date'] = $_POST['date'];
     if ($_GET['date'])
         $_SESSION['list_time'] = unixtime(sprintf('%08d000000',
 $_GET['date']));

 to

 // New list date?
     $_GET['date'] or $_GET['date'] = $_POST['date'];
     if ($_GET['date'])
         $_SESSION['list_time'] = unixtime(sprintf('%08d000000',
 $_GET['date']));
     if (!$_SESSION['list_time'])
         $_SESSION['list_time'] = unixtime(sprintf('%08d000000',
 date('Ymd')));

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/3939>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list