abbruch beim fehler

git-svn-id: svn://svn.cccv.de/engel-system@201 29ba0400-6e00-0410-a75a-ca02368028f8
This commit is contained in:
cookie 2006-12-05 19:28:29 +00:00
parent 68abd9ae75
commit de2c8c72d1
1 changed files with 5 additions and 2 deletions

View File

@ -163,9 +163,8 @@ case 'newsave':
foreach ( $lenArrayDummy as $Temp )
{
if( isset($Temp2) )
$lenArray[$Temp2] = intval($Temp)-intval($Temp2);
$lenArray[intval($Temp2)] = intval($Temp)-intval($Temp2);
$Temp2 = $Temp;
}//foreach
}//IF( $NachtON == "ON" )
@ -193,7 +192,11 @@ case 'newsave':
// define End time
if( $_GET["NachtON"] == "ON" )
{
if( !isset($lenArray[$Time])) die("Zeit $Time h nicht definiert.");
$_GET["len"] = $lenArray[$Time];
if( $_GET["len"]<1) die("len <1");
}
$TimeEnd = $Time+ $_GET["len"];
//Tagesüberschreitung