load prestudent

This commit is contained in:
Robert Hofer
2015-03-12 11:36:24 +01:00
parent 570bbf7527
commit 6066462044
+4 -2
View File
@@ -90,7 +90,7 @@ class prestudent extends person
/**
* Laedt Prestudent mit der uebergebenen ID
* @param $uid ID der Person die geladen werden soll
* @param $prestudent_id ID des Prestudenten der geladen werden soll
*/
public function load($prestudent_id)
{
@@ -100,7 +100,9 @@ class prestudent extends person
return false;
}
$qry = "SELECT * FROM public.tbl_prestudent WHERE prestudent_id=".$this->db_add_param($prestudent_id);
$qry = 'SELECT * '
. 'FROM public.tbl_prestudent '
. 'WHERE prestudent_id = '.$this->db_add_param($prestudent_id, FHC_INTEGER);
if($this->db_query($qry))
{