mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-24 02:12:17 +00:00
This commit is contained in:
@@ -725,6 +725,12 @@ class prestudent extends person
|
||||
|
||||
function getLastStatus($prestudent_id)
|
||||
{
|
||||
if($prestudent_id=='' || !is_numeric($prestudent_id))
|
||||
{
|
||||
$this->errormsg = 'Prestudent_id ist ungueltig';
|
||||
return false;
|
||||
}
|
||||
|
||||
$qry = "SELECT * FROM public.tbl_prestudentrolle WHERE prestudent_id='$prestudent_id' ORDER BY datum DESC, insertamum DESC, ext_id DESC LIMIT 1";
|
||||
if($result = pg_query($this->conn, $qry))
|
||||
{
|
||||
|
||||
@@ -211,8 +211,8 @@ class student extends benutzer
|
||||
$this->studiengang_kz.','.
|
||||
$this->semester.','.
|
||||
($this->ext_id_student!=''?$this->ext_id_student:'null').','.
|
||||
($this->verband!=''?"'".addslashes($this->verband)."'":' ').','.
|
||||
($this->gruppe!=''?"'".addslashes($this->gruppe)."'":' ').','.
|
||||
($this->verband!=''?"'".addslashes($this->verband)."'":"' '").','.
|
||||
($this->gruppe!=''?"'".addslashes($this->gruppe)."'":"' '").','.
|
||||
$this->addslashes($this->insertamum).','.
|
||||
$this->addslashes($this->insertvon).');';
|
||||
}
|
||||
@@ -227,8 +227,8 @@ class student extends benutzer
|
||||
' studiengang_kz='.$this->studiengang_kz.','.
|
||||
' semester='.$this->semester.','.
|
||||
' ext_id='.($this->ext_id_student!=''?$this->ext_id_student:'null').','.
|
||||
' verband='.$this->addslashes($this->verband).','.
|
||||
' gruppe='.$this->addslashes($this->gruppe).
|
||||
' verband='.($this->verband!=''?"'".addslashes($this->verband)."'":"' '").','.
|
||||
' gruppe='.($this->gruppe!=''?"'".addslashes($this->gruppe)."'":"' '").
|
||||
" WHERE student_uid='".addslashes($this->uid)."';";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user