diff --git a/www-ssl/inc/funktion_schichtplan_beamer.php b/www-ssl/inc/funktion_schichtplan_beamer.php index 5a9e78c3..acd6e110 100755 --- a/www-ssl/inc/funktion_schichtplan_beamer.php +++ b/www-ssl/inc/funktion_schichtplan_beamer.php @@ -128,10 +128,9 @@ function ausgabe_Feld_Inhalt( $SID, $Man ) $SQLerlaubnis = "SELECT Name FROM `EngelType` WHERE TID = '". $TempValue["TID"]. "'"; $Ergerlaubnis = mysql_query( $SQLerlaubnis, $con); if( mysql_num_rows( $Ergerlaubnis)) - if( $_SESSION['CVS'][mysql_result( $Ergerlaubnis, 0, "Name")] == "Y" || - $_SESSION['CVS'][mysql_result( $Ergerlaubnis, 0, "Name")] == "") - for($i=1; $i<=$TempValue["free"]; $i++ ) - $Out.= "free"; + if( $_SESSION['CVS'][mysql_result( $Ergerlaubnis, 0, "Name")] == "Y" || + $_SESSION['CVS'][mysql_result( $Ergerlaubnis, 0, "Name")] == "") + $Out.= $TempValue["free"]. "x free "; $Out.= "\n"; $Out.= "\t\t\t\n";