Opened 18 years ago
Closed 18 years ago
#3939 closed defect (worksforme)
Channel detail page defalt date value missing
Reported by: | anonymous | Owned by: | Rob Smith |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | mythweb | Version: | 0.20 |
Severity: | low | Keywords: | |
Cc: | Ticket locked: | no |
Description
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?
$_GETdate or $_GETdate = $_POSTdate; if ($_GETdate)
$_SESSIONlist_time = unixtime(sprintf('%08d000000', $_GETdate));
to
New list date?
$_GETdate or $_GETdate = $_POSTdate; if ($_GETdate)
$_SESSIONlist_time = unixtime(sprintf('%08d000000', $_GETdate));
if (!$_SESSIONlist_time)
$_SESSIONlist_time = unixtime(sprintf('%08d000000', date('Ymd')));
care to submit this as a patch?