mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-05 13:39:23 +01:00
Queries in Galaxia api need ADODB_FETCH_ASSOC set
This commit is contained in:
parent
1c6aedeb7a
commit
8a356e7e72
@ -22,6 +22,10 @@ class Base extends Observable {
|
|||||||
// copied from tikilib.php
|
// copied from tikilib.php
|
||||||
function query($query, $values = null, $numrows = -1, $offset = -1, $reporterrors = true) {
|
function query($query, $values = null, $numrows = -1, $offset = -1, $reporterrors = true) {
|
||||||
$this->convert_query($query);
|
$this->convert_query($query);
|
||||||
|
|
||||||
|
// Galaxia needs to be call ADOdb in associative mode
|
||||||
|
$this->db->SetFetchMode(ADODB_FETCH_ASSOC);
|
||||||
|
|
||||||
if ($numrows == -1 && $offset == -1)
|
if ($numrows == -1 && $offset == -1)
|
||||||
$result = $this->db->Execute($query, $values);
|
$result = $this->db->Execute($query, $values);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user