From 8a356e7e7258c5ebed0e1f7af0f4fe1d56bfb4ef Mon Sep 17 00:00:00 2001 From: alpeb Date: Tue, 10 Aug 2004 14:07:30 +0000 Subject: [PATCH] Queries in Galaxia api need ADODB_FETCH_ASSOC set --- phpgwapi/inc/galaxia_workflow/src/common/Base.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/phpgwapi/inc/galaxia_workflow/src/common/Base.php b/phpgwapi/inc/galaxia_workflow/src/common/Base.php index 5c7da7da6c..fc87985532 100644 --- a/phpgwapi/inc/galaxia_workflow/src/common/Base.php +++ b/phpgwapi/inc/galaxia_workflow/src/common/Base.php @@ -22,6 +22,10 @@ class Base extends Observable { // copied from tikilib.php function query($query, $values = null, $numrows = -1, $offset = -1, $reporterrors = true) { $this->convert_query($query); + + // Galaxia needs to be call ADOdb in associative mode + $this->db->SetFetchMode(ADODB_FETCH_ASSOC); + if ($numrows == -1 && $offset == -1) $result = $this->db->Execute($query, $values); else