From 34b50a61f8ec080d66449b7c644e5098102e2145 Mon Sep 17 00:00:00 2001 From: cookie Date: Sun, 3 Dec 2006 22:30:21 +0000 Subject: [PATCH] zahlen as zahlen behandeln git-svn-id: svn://svn.cccv.de/engel-system@197 29ba0400-6e00-0410-a75a-ca02368028f8 --- www-ssl/admin/shiftadd.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www-ssl/admin/shiftadd.php b/www-ssl/admin/shiftadd.php index 16a64675..e873f5e0 100755 --- a/www-ssl/admin/shiftadd.php +++ b/www-ssl/admin/shiftadd.php @@ -163,7 +163,7 @@ case 'newsave': foreach ( $lenArrayDummy as $Temp ) { if( isset($Temp2) ) - $lenArray[$Temp2] = $Temp-$Temp2; + $lenArray[$Temp2] = intval($Temp)-intval($Temp2); $Temp2 = $Temp; }//foreach @@ -182,7 +182,7 @@ case 'newsave': echo "\n"; $DateEnd = $_GET["SDatum"]; - $TimeEnd = $_GET["STime"]; + $TimeEnd = intval($_GET["STime"]); $len=0; do { @@ -216,7 +216,7 @@ case 'newsave': CreateNewEntry(); if( $_GET["MoreThenOne"]!="ON" ) break; - if( $DateEnd == $_GET["EDatum"] && $TimeEnd >= $_GET["ETime"] ) break; + if( $DateEnd >= $_GET["EDatum"] && $TimeEnd >= intval($_GET["ETime"]) ) break; } while( true ); echo "";