diff --git a/www-ssl/admin/room.php b/www-ssl/admin/room.php index 3b8cb63c..c2f556f2 100755 --- a/www-ssl/admin/room.php +++ b/www-ssl/admin/room.php @@ -82,18 +82,7 @@ case 'newsave': $Keys .= ", `$key`"; $Values .= ", '$value'"; } - - //ermitteln des letzten eintrages - $SQLin = "SELECT `RID` FROM `Room` ". - "WHERE NOT (`FromPentabarf` = 'Y') ". - "ORDER BY `RID` DESC"; - $Ergin = mysql_query($SQLin, $con); - if( mysql_num_rows( $Ergin) > 0) - $RID = mysql_result( $Ergin, 0, 0)+1; - else - $RID = 10000; - - $SQL = "INSERT INTO `Room` (`RID`$Keys) VALUES ( '$RID'$Values)"; + $SQL = "INSERT INTO `Room` (". substr( $Keys, 2). ") VALUES (". substr( $Values, 2). ")"; SetHeaderGo2Back(); break; diff --git a/www-ssl/admin/shiftadd.php b/www-ssl/admin/shiftadd.php index 8295483c..e13f882e 100755 --- a/www-ssl/admin/shiftadd.php +++ b/www-ssl/admin/shiftadd.php @@ -288,18 +288,8 @@ function CreateNewEntry() echo "\t