mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
BugFix Function getStudiengaengeDokument
Added db_num_rows before while-loop
This commit is contained in:
@@ -832,16 +832,21 @@ class dokument extends basis_db
|
||||
|
||||
if($result = $this->db_query($qry))
|
||||
{
|
||||
$stg_obj = new basis_db();
|
||||
while($row = $this->db_fetch_object($result))
|
||||
if ($this->db_num_rows($result) > 0)
|
||||
{
|
||||
$stg_obj->kuerzel = $row->kuerzel;
|
||||
$stg_obj->bezeichnung = $row->bezeichnung;
|
||||
$stg_obj->studiengang_kz = $row->studiengang_kz;
|
||||
|
||||
$this->result[] = $stg_obj;
|
||||
while($row = $this->db_fetch_object($result))
|
||||
{
|
||||
$stg_obj = new basis_db();
|
||||
$stg_obj->kuerzel = $row->kuerzel;
|
||||
$stg_obj->bezeichnung = $row->bezeichnung;
|
||||
$stg_obj->studiengang_kz = $row->studiengang_kz;
|
||||
|
||||
$this->result[] = $stg_obj;
|
||||
}
|
||||
return $stg_obj;
|
||||
}
|
||||
return $stg_obj;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user