mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user