diff --git a/www-ssl/inc/funktion_schichtplan.php b/www-ssl/inc/funktion_schichtplan.php
index ca497749..4e2735a1 100755
--- a/www-ssl/inc/funktion_schichtplan.php
+++ b/www-ssl/inc/funktion_schichtplan.php
@@ -131,19 +131,11 @@ function ausgabe_Feld_Inhalt( $SID, $Man )
$Ergtime = mysql_query($SQLtime, $con);
if( mysql_num_rows( $Ergtime) > 0)
{
-
-// $EngelTypeID[$TempValue["TID"]]
- $SQLerlaubnis = "SELECT Name FROM `EngelType` WHERE TID = '". $TempValue["TID"]. "'";
- $Ergerlaubnis = mysql_query( $SQLerlaubnis, $con);
- if( mysql_num_rows( $Ergerlaubnis))
-
- {
-
//wenn keien rechte definiert sind
- if( !isset($_SESSION['CVS'][mysql_result( $Ergerlaubnis, 0, "Name")]))
- $_SESSION['CVS'][mysql_result( $Ergerlaubnis, 0, "Name")] = "Y";
+ if( !isset($_SESSION['CVS'][ $TID2Name[$TempValue["TID"]] ]))
+ $_SESSION['CVS'][ $TID2Name[$TempValue["TID"]] ] = "Y";
- if( $_SESSION['CVS'][mysql_result( $Ergerlaubnis, 0, "Name")] == "Y")
+ if( $_SESSION['CVS'][ $TID2Name[$TempValue["TID"]] ] == "Y")
if( $TempValue["free"] > 0 )
{
$Spalten.= "
\n\t\t ";
- }
- }
+ }
}
else
{
diff --git a/www-ssl/inc/funktion_schichtplan_aray.php b/www-ssl/inc/funktion_schichtplan_aray.php
index b5e98e21..02ea8dfd 100755
--- a/www-ssl/inc/funktion_schichtplan_aray.php
+++ b/www-ssl/inc/funktion_schichtplan_aray.php
@@ -31,6 +31,7 @@
$EngelTypeID[ mysql_result($Erg, $i, "TID") ] =
mysql_result($Erg, $i, "Name").Get_Text("inc_schicht_engel");
+ $TID2Name[ mysql_result($Erg, $i, "TID") ] = mysql_result($Erg, $i, "Name");
}
include ("./inc/funktion_schichtplan_Tage.php");