Changeset 22

Show
Ignore:
Timestamp:
10/19/06 18:49:12 (14 years ago)
Author:
static
Message:

Fix for date selector code in admin.php

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/admin.php

    r17 r22  
    5757    {            
    5858        $config->setConfig('filter_apply', '1'); 
    59         $config->setConfig('filter_date', mktime(0,0,0,$_POST['filter_month'],$_POST['filter_day'],$_POST['filter_year']));         
     59        $config->setConfig('filter_date', mktime(0,0,0,$_POST['filter_month'],($_POST['filter_day'] > 31 ? 31 : $_POST['filter_day']),$_POST['filter_year']));         
    6060    }else{ 
    6161        $config->setConfig('filter_apply', '0');