From b5fcfb7b091ee84043c89a0f833c275a086a1728 Mon Sep 17 00:00:00 2001 From: Harald Bamberger Date: Fri, 25 Jun 2021 14:26:07 +0200 Subject: [PATCH] first guess, TODO check statusgrund_id --- content/student/studentenoverlay.xul.php | 1 + rdf/student.rdf.php | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/content/student/studentenoverlay.xul.php b/content/student/studentenoverlay.xul.php index 9865f2719..41010e0f5 100644 --- a/content/student/studentenoverlay.xul.php +++ b/content/student/studentenoverlay.xul.php @@ -204,6 +204,7 @@ else + db_add_param($studiensemester_kurzbz)." AND + person_id=".$db->db_add_param($row->person_id, FHC_INTEGER)." AND + status_kurzbz='Student' AND statusgrund_id = 14"; + if ( $db->db_query($qry) && ($row_filter = $db->db_fetch_object()) && ($row_filter->anzahl > 0) ) + { + return false; + } + } return true; }