summaryrefslogtreecommitdiff
path: root/www-ssl
diff options
context:
space:
mode:
authorcookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2006-12-05 19:28:29 +0000
committercookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2006-12-05 19:28:29 +0000
commitde2c8c72d10b15ae533eecbe4cc351a441b3cc20 (patch)
tree721542d5237937faa0e96e62b2cb2eab2a66c712 /www-ssl
parent68abd9ae75fdcb791eb152d741ce57bd4d41fb49 (diff)
abbruch beim fehler
git-svn-id: svn://svn.cccv.de/engel-system@201 29ba0400-6e00-0410-a75a-ca02368028f8
Diffstat (limited to 'www-ssl')
-rwxr-xr-xwww-ssl/admin/shiftadd.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/www-ssl/admin/shiftadd.php b/www-ssl/admin/shiftadd.php
index 15e54735..cefefd89 100755
--- a/www-ssl/admin/shiftadd.php
+++ b/www-ssl/admin/shiftadd.php
@@ -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