fixed future-leak

highcharts
agp8x 2014-07-28 21:24:15 +02:00
parent 8109e077cd
commit ac31d04370
1 changed files with 13 additions and 1 deletions

View File

@ -62,7 +62,19 @@ if($mode==1){
$date=array($_GET['year'],$_GET['month'],1); $date=array($_GET['year'],$_GET['month'],1);
}else{ }else{
$date=array($_GET['year'],$_GET['month'],$_GET['day']); $date=array($_GET['year'],$_GET['month'],$_GET['day']);
if(($_GET['day']>$today[0])&&($_GET['month']>=$today[1])&&($_GET['year']>=$today[2])){ $future=false;
if($_GET['year']>$today[2]){
$future=true;
}else{
if($_GET['month']>$today[1]){
$future=true;
}else{
if($_GET['day']>$today[0]){
$future=true;
}
}
}
if($future){
$error="future"; $error="future";
$mode=0; $mode=0;
} }