From c295aa53cf9f00af3b3e24f31639d2d8e691cda1 Mon Sep 17 00:00:00 2001 From: Cris Date: Wed, 15 Jul 2020 15:47:48 +0200 Subject: [PATCH] Fixed broken loop of Lehrgang-students Variable 'result' for email-query was overwriting the main variable 'result' to loop through student-query. Fixed now. Signed-off-by: Cris --- vilesci/bis/lehrgangsmeldung.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vilesci/bis/lehrgangsmeldung.php b/vilesci/bis/lehrgangsmeldung.php index bcb65c8e4..07a62a9ae 100644 --- a/vilesci/bis/lehrgangsmeldung.php +++ b/vilesci/bis/lehrgangsmeldung.php @@ -254,11 +254,11 @@ if($result = $db->db_query($qry)) "; $email = ''; - if ($result = $db->db_query($qry_mail)) + if ($result_email = $db->db_query($qry_mail)) { - if($db->db_num_rows($result) == 1) + if($db->db_num_rows($result_email) == 1) { - if($row_mail = $db->db_fetch_object($result)) + if($row_mail = $db->db_fetch_object($result_email)) { $email = $row_mail->kontakt; }