diff --git a/content/statistik/projektarbeitexport.xls.php b/content/statistik/projektarbeitexport.xls.php index 213cb4b94..3b8e6b31e 100644 --- a/content/statistik/projektarbeitexport.xls.php +++ b/content/statistik/projektarbeitexport.xls.php @@ -103,7 +103,7 @@ if ($semester != '') $zeile=1; if ($result = $db->db_query($qry)) { - while ($row = $db->db_fetch_array($result)) + while ($row = $db->db_fetch_array($result, null, PGSQL_BOTH)) { $zeile++; $i = 0; @@ -150,7 +150,7 @@ if ($result = $db->db_query($qry)) } $zeile++; - while ($row_betreuer = $db->db_fetch_array($result_betreuer)) + while ($row_betreuer = $db->db_fetch_array($result_betreuer, null, PGSQL_BOTH)) { $i = 1; diff --git a/include/pgsql.class.php b/include/pgsql.class.php index 7e0333b9f..2daf2283a 100644 --- a/include/pgsql.class.php +++ b/include/pgsql.class.php @@ -172,12 +172,12 @@ class basis_db extends db return pg_result_seek($result, $offset); } - public function db_fetch_array($result=null) + public function db_fetch_array($result=null, $row=null, $result_type=PGSQL_NUM) { if(is_null($result)) - return pg_fetch_array($this->db_result); + return pg_fetch_array($this->db_result, $row, $result_type); else - return pg_fetch_array($result); + return pg_fetch_array($result, $row, $result_type); } public function db_num_fields($result=null)