fix duration bug

This commit is contained in:
Georg Ehrke 2011-10-01 21:09:08 +02:00
parent 8219516ec0
commit 1ea183a0f7
1 changed files with 3 additions and 1 deletions

View File

@ -70,9 +70,11 @@ if(strlen($newdate) > 10){
$allday = true; $allday = true;
$newdatestringarray[1] = "00:00"; $newdatestringarray[1] = "00:00";
}else{ }else{
$allday = false; if($allday == true){
$difference = 3600; $difference = 3600;
} }
$allday = false;
}
}else{ }else{
$newdatestringarray = array(); $newdatestringarray = array();
$newdatestringarray[0] = $newdate; $newdatestringarray[0] = $newdate;