From ed3e0f2b48cc340f7ddaa34ab16fd253d7f9830c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Tue, 19 May 2020 18:05:44 +0200 Subject: [PATCH] =?UTF-8?q?Exportparameter=20f=C3=BCr=20db=5Ffetch=5Farray?= =?UTF-8?q?=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/statistik/projektarbeitexport.xls.php | 4 ++-- include/pgsql.class.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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)