From e713868110b63a4f3517c8de8361442d3e2e4229 Mon Sep 17 00:00:00 2001 From: aschwarz Date: Wed, 1 Mar 2023 15:50:40 +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 --- stud/ag_tage_neu.php | 2 +- stud/antrag_aend.php | 6 +++--- stud/check_aend.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/stud/ag_tage_neu.php b/stud/ag_tage_neu.php index ec2fb74..63c212d 100755 --- a/stud/ag_tage_neu.php +++ b/stud/ag_tage_neu.php @@ -167,7 +167,7 @@ $res2 = $db->query("SELECT distinct status LIMIT 1"); $stud_status = $res2->fetch_array(); -if($stud_status[status] != '0'){ +if($stud_status['status'] != '0'){ echo " diff --git a/stud/antrag_aend.php b/stud/antrag_aend.php index 2085eba..ebd94f9 100755 --- a/stud/antrag_aend.php +++ b/stud/antrag_aend.php @@ -3546,12 +3546,12 @@ if(trim($db_vertiefungsbereich) == trim($vertiefungsbereich) AND ## Entweder es gibt zur DSTS einen Schlüssel, oder es wird einer angelegt und DS in tmp Tabelle gespeichert, bis Admin sie umträgt - if($row_key[dst_id] == ''){ + if($row_key['dst_id'] == ''){ $res2 = $db->query("SELECT dst_id FROM stan_dienststellen_tmp WHERE bez='$bezeichnung' AND str='$str' AND plz='$plz' AND ort='$ort' AND postfach='$postfach' AND plz_postfach='$plz_postfach'"); $row_key2 = $res2->fetch_array(); - if($row_key2[dst_id] == ''){ + if($row_key2['dst_id'] == ''){ ## Herausfinden, welches die max Dienststellen ID ist. Simulation einer Sequence $res1 = $db->query("SELECT max(dst_id)+1 next FROM stan_dienststellen"); $row_next1 = $res1->fetch_array(); @@ -3608,7 +3608,7 @@ if(trim($db_vertiefungsbereich) == trim($vertiefungsbereich) AND LIMIT 1 "); $rowdata1a = $result_data1a->fetch_array(); - $aendid = $rowdata1a[saaid]; # Wurde beim Vergleich, ob sich was geändert hat, schon selektiert + $aendid = $rowdata1a['saaid']; # Wurde beim Vergleich, ob sich was geändert hat, schon selektiert diff --git a/stud/check_aend.php b/stud/check_aend.php index f0ebc9a..36134ed 100755 --- a/stud/check_aend.php +++ b/stud/check_aend.php @@ -646,7 +646,7 @@ oPopupBody.style.border = \"solid blue 1px\"; $fehler = 'X'; } - }elseif($row_minmax[ueber] == '0'){ + }elseif($row_minmax['ueber'] == '0'){ echo "OK"; }