Bug found in eb_articlelist
In the news.php file, I think I found a bug. Its around line 15:
$first=mktime(0,0,0,$month,1,$year); $last=mktime(23,59,59,$month,31,$year);
For $last, it doesn't take in to account months that don't have 31 days. I modified it to this:
$num_days_in_this_month = date("t", mktime(0,0,0,$month,1,$year));
$first=mktime(0,0,0,$month,1,$year);
$last=mktime(23,59,59,$month,$num_days_in_this_month,$year);
Anyone else notice this? I did a search and it didn't bring anything up.
eggbuser - 8:25pm, 3 March 2010
Submit a post to this topic
You are not logged in.