mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-26 00:54:27 +00:00
check Bismeldestichtag, refactor Lehrverband
This commit is contained in:
@@ -14,14 +14,12 @@ class Studentlehrverband_model extends DB_Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if Rolle already exists
|
||||
* @param integer $prestudent_id
|
||||
* @param string $status_kurzbz
|
||||
* Check if Studentlehrverband already exists
|
||||
* @param string $student_id
|
||||
* @param string $studiensemester_kurzbz
|
||||
* @param integer $ausbildungssemester
|
||||
* @return 1: if Rolle exists, 0: if it doesn't
|
||||
*/
|
||||
public function checkIfLehrverbandExists($student_uid, $studiensemester_kurzbz)
|
||||
public function checkIfStudentlehrverbandExists($student_uid, $studiensemester_kurzbz)
|
||||
{
|
||||
$qry = "SELECT
|
||||
*
|
||||
@@ -40,11 +38,11 @@ class Studentlehrverband_model extends DB_Model
|
||||
}
|
||||
elseif (!hasData($result))
|
||||
{
|
||||
return success("0", "Kein Lehrverband vorhanden!");
|
||||
return success("0", "Kein Studentlehrverband vorhanden!");
|
||||
}
|
||||
else
|
||||
{
|
||||
return success("1","Lehrverband vorhanden!");
|
||||
return success("1","Studentlehrverband vorhanden!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user