From 0cf74e92973b66367c4fffb37a40ff1404026a68 Mon Sep 17 00:00:00 2001
From: aschwarz <a.schwarz@polizei.bwl.de>
Date: Mon, 27 Feb 2023 10:16:06 +0100
Subject: [PATCH] =?UTF-8?q?kleine=20constant=20Fehler=20ge=C3=A4ndert?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 admin/ausnahme.php            |  4 +--
 admin/datenblatt_kehl_neu.php |  6 ++---
 admin/datenblatt_lubu_neu.php | 50 +++++++++++++++++------------------
 admin/jahrgangsstatus.php     | 12 ++++-----
 4 files changed, 36 insertions(+), 36 deletions(-)

diff --git a/admin/ausnahme.php b/admin/ausnahme.php
index 8d4302d..5146fc7 100755
--- a/admin/ausnahme.php
+++ b/admin/ausnahme.php
@@ -32,7 +32,7 @@ else
 switch($action){
 default:
 
-$vert1 = $_COOKEI[ck_vert1];
+$vert1 = $_COOKEI['ck_vert1'];
 
 $db = dbconnect();
 include("kurs/sta/stan_soadmonline_write.php");     // F&uuml;r Statistik, wieviele User online sind
@@ -649,4 +649,4 @@ if ($sql)  // Best&auml;tigungsseite bei Erfolg sonst Nichterfolgsmeldung
   }
 
 } //Ende Action Abfrage
-?>
\ No newline at end of file
+?>
diff --git a/admin/datenblatt_kehl_neu.php b/admin/datenblatt_kehl_neu.php
index ad5f3da..820113b 100755
--- a/admin/datenblatt_kehl_neu.php
+++ b/admin/datenblatt_kehl_neu.php
@@ -132,8 +132,8 @@ echo "
 			    			         or die ("Cannot execute query");
 			    			      echo "<select size=\"5\" name=\"user2\">";
 			    			      while ($row = $result->fetch_array()){
-			                                    echo "<option value=\"".$row[mtknr]."\">$row[nachname], $row[vorname]";
-			                                    if ($row[durchgefallen] == "Y"){
+			                                    echo "<option value=\"".$row['mtknr']."\">$row[nachname], $row[vorname]";
+			                                    if ($row['durchgefallen'] == "Y"){
 			                                      echo " *";
 			                                    }
 			                                    echo "
@@ -1144,4 +1144,4 @@ $pdf->closeParsers();
 #############################################################
 
 } // Ende Action script
-?>
\ No newline at end of file
+?>
diff --git a/admin/datenblatt_lubu_neu.php b/admin/datenblatt_lubu_neu.php
index 3206333..122e0ac 100755
--- a/admin/datenblatt_lubu_neu.php
+++ b/admin/datenblatt_lubu_neu.php
@@ -132,8 +132,8 @@ echo "
 			    			         or die ("Cannot execute query");
 			    			      echo "<select size=\"5\" name=\"user2\">";
 			    			      while ($row = $result->fetch_array()){
-			                                    echo "<option value=\"".$row[mtknr]."\">$row[nachname], $row[vorname]";
-			                                    if ($row[durchgefallen] == "Y"){
+			                                    echo "<option value=\"".$row['mtknr']."\">$row[nachname], $row[vorname]";
+			                                    if ($row['durchgefallen'] == "Y"){
 			                                      echo " *";
 			                                    }
 			                                    echo "
@@ -765,31 +765,31 @@ while ($row1 = $result->fetch_array()){
                            WHERE dst_id ='$row1[dst_id]'");
   $row6 = $result6->fetch_array();
   
-  if($row5[name] != '' and $row6[bez] == ''){
-    $bezeichnung = $row5[name];
-    $str = $row5[str];
-    $plz = $row5[plz];
-    $postfach = $row5[postfach];
-    $plz_postfach = $row5[plz_postfach];
-    $ort = $row5[ort];
-    $bundesland = $row5[bundesland];
+  if($row5['name'] != '' and $row6['bez'] == ''){
+    $bezeichnung = $row5['name'];
+    $str = $row5['str'];
+    $plz = $row5['plz'];
+    $postfach = $row5['postfach'];
+    $plz_postfach = $row5['plz_postfach'];
+    $ort = $row5['ort'];
+    $bundesland = $row5['bundesland'];
   }
   
   
-  if($row5[name] == '' and $row6[bez] != ''){
-   $bezeichnung = $row6[bez];
-    $str = $row6[str];
-    $plz = $row6[plz];
-    $postfach = $row6[postfach];
-    $plz_postfach = $row6[plz_postfach];
-    $ort = $row6[ort];
-    $bundesland = $row6[bundesland];
+  if($row5['name'] == '' and $row6['bez'] != ''){
+   $bezeichnung = $row6['bez'];
+    $str = $row6['str'];
+    $plz = $row6['plz'];
+    $postfach = $row6['postfach'];
+    $plz_postfach = $row6['plz_postfach'];
+    $ort = $row6['ort'];
+    $bundesland = $row6['bundesland'];
   }
   
-  if($row5[name] == '' and $row6[bez] == ''){
+  if($row5['name'] == '' and $row6['bez'] == ''){
     
-    if($row2[bezeichnung] == 'Antragszeitraum Beginn' or $row2[bezeichnung] == 'Antragszeitraum Ende'){
-      $bezeichnung = $row2[bezeichnung];
+    if($row2['bezeichnung'] == 'Antragszeitraum Beginn' or $row2['bezeichnung'] == 'Antragszeitraum Ende'){
+      $bezeichnung = $row2['bezeichnung'];
     }else{
      $bezeichnung = '<i>Zeitraum vorgemerkt</i>';
     }
@@ -913,7 +913,7 @@ while ($row1 = $result->fetch_array()){
   $pdf->SetFont('Arial', '', 11);
   $pdf->MultiCell(160, 3,"$row1[beginn] - $row1[ende]", 0, 'L');
   
-  if($row1[abteilung] != ''){
+  if($row1['abteilung'] != ''){
   $pos = $pdf->GetY()+8;
   $pdf->SetY($pos);
   $pdf->SetX(24);
@@ -927,7 +927,7 @@ while ($row1 = $result->fetch_array()){
   $pdf->MultiCell(160, 3,"$row1[abteilung]", 0, 'L');
   }
   
-  if($row1[tel_abteilung] != ''){
+  if($row1['tel_abteilung'] != ''){
   $pos = $pdf->GetY()+8;
   $pdf->SetY($pos);
   $pdf->SetX(24);
@@ -943,7 +943,7 @@ while ($row1 = $result->fetch_array()){
   
   
   
-  if($row2[bezeichnung] != ''){
+  if($row2['bezeichnung'] != ''){
   $pos = $pdf->GetY()+8;
   $pdf->SetY($pos);
   $pdf->SetX(24);
@@ -1119,4 +1119,4 @@ $pdf->closeParsers();
 #############################################################
 
 } // Ende Action script
-?>
\ No newline at end of file
+?>
diff --git a/admin/jahrgangsstatus.php b/admin/jahrgangsstatus.php
index efaa0ab..846adad 100755
--- a/admin/jahrgangsstatus.php
+++ b/admin/jahrgangsstatus.php
@@ -221,7 +221,7 @@ a{
                                       $prxmail = $row6['mail'];
                                     }
 
-                                    if($row5[name] == '' and $row6['bez'] == ''){
+                                    if($row5['name'] == '' and $row6['bez'] == ''){
                                       $bezeichnung = '<i>Zeitraum vorgemerkt</i>';
                                       $ort = '';
                                     }
@@ -463,17 +463,17 @@ a{
                                              #    Wenn nicht unterschiedlich, dann Button anzeigen.
                                              
                                              #1
-                                             $block_cur= get_block($row[saaid], $jahrgang);
+                                             $block_cur= get_block($row['saaid'], $jahrgang);
                                              $result1 = $db->query("SELECT prio0, prio1
 				                                       FROM stan_ag_wunsch_vw
 				                                      WHERE uid= '$row[uid]'
 				                                        AND block='$block_cur'");
 				             $row_standort = $result1->fetch_array();
 				             
-				             if($row_standort[prio0] == NULL OR $row_standort[prio0] == ''){
-				               $stelle_ag_standort = $row_standort[prio1];
+				             if($row_standort['prio0'] == NULL OR $row_standort['prio0'] == ''){
+				               $stelle_ag_standort = $row_standort['prio1'];
 				             }else{
-				               $stelle_ag_standort = $row_standort[prio0];
+				               $stelle_ag_standort = $row_standort['prio0'];
 				             }
 				             
 				             #2
@@ -492,7 +492,7 @@ a{
 
 				             $row4 = $result4->fetch_array();
 				             
-				             if($row4[vert_bereich] != $row3[vbid] AND $stelle_ag_standort != '' AND $stelle_ag_standort != '8888' AND $stelle_ag_standort != '9999'){
+				             if($row4['vert_bereich'] != $row3['vbid'] AND $stelle_ag_standort != '' AND $stelle_ag_standort != '8888' AND $stelle_ag_standort != '9999'){
 				               # Vertiefungsbereich wurde geƤndert
 				               #$zuw_alle_sperre ='X';