Bewerbungstool: neue Funktion isPastAbbrecher()

This commit is contained in:
ma0068
2022-09-07 15:27:47 +02:00
parent 625b3c74c4
commit 604592cdd1
+3 -3
View File
@@ -2376,13 +2376,13 @@ class prestudent extends person
}
/**
* Prueft, ob eine Person bereits einmal auf der FHTW Studierend war
* Prueft, ob eine Person Abbrecher war
* @param int $person_id ID der zu überprüfenden Person.
* @return true wenn vorhanden
* false wenn nicht vorhanden
* false und errormsg wenn Fehler aufgetreten ist
*/
public function isPastStudent($person_id)
public function isPastAbbrecher($person_id)
{
if (!is_numeric($person_id))
{
@@ -2395,7 +2395,7 @@ public function isPastStudent($person_id)
JOIN public.tbl_prestudentstatus USING (prestudent_id)
JOIN public.tbl_studiengang USING (studiengang_kz)
WHERE person_id = ".$this->db_add_param($person_id, FHC_INTEGER)."
AND status_kurzbz in ('Student')
AND status_kurzbz in ('Abbrecher')
AND typ in ('b','m','d')
";