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 <hainberg@technikum-wien.at>
This commit is contained in:
Cris
2020-07-15 15:47:48 +02:00
parent 212a879077
commit c295aa53cf
+3 -3
View File
@@ -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;
}