summaryrefslogtreecommitdiff
path: root/adodb.inc.php
diff options
context:
space:
mode:
authorDamien Regad <dregad@mantisbt.org>2014-03-04 10:02:02 +0100
committerDamien Regad <dregad@mantisbt.org>2014-03-04 10:02:02 +0100
commit52a1d8f473d90ec7f46d27a9b0439478e74659a9 (patch)
tree3e671df6f22926eab9c55abaf4df52ecba1b3265 /adodb.inc.php
parentf60d9b79facc957061941f43a6ce602dd6716a00 (diff)
downloadadodb-52a1d8f473d90ec7f46d27a9b0439478e74659a9.tar.gz
adodb-52a1d8f473d90ec7f46d27a9b0439478e74659a9.tar.bz2
adodb-52a1d8f473d90ec7f46d27a9b0439478e74659a9.zip
GetAssoc issue when 2nd column is null
If the second column of the first row happens to be null, ADOdb returned a one-based array rather than the expected zero-based one. Resolved by using array_key_exists() instead of isset(). Fixes sourceforge bug #130
Diffstat (limited to 'adodb.inc.php')
-rw-r--r--adodb.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/adodb.inc.php b/adodb.inc.php
index eb333ef6..39bd1134 100644
--- a/adodb.inc.php
+++ b/adodb.inc.php
@@ -3168,7 +3168,7 @@ http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10759/statements_1
$false = false;
return $false;
}
- $numIndex = isset($this->fields[0]) && isset($this->fields[1]);
+ $numIndex = is_array($this->fields) && array_key_exists(0, $this->fields);
$results = array();
if (!$first2cols && ($cols > 2 || $force_array)) {