cvs: pear /MDB/MDB Common.php
| From: | Lukas Smith | Date: | Wed, 05 Feb 2003 12:33:53 +0000 |
| Subject: | cvs: pear /MDB/MDB Common.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-8719@lists.php.net to get a copy of this message | ||
lsmith Wed Feb 5 07:33:53 2003 EDT
Modified files:
/pear/MDB/MDB Common.php
Log:
last bigfix introduced a new bug in convertResultRow()
Index: pear/MDB/MDB/Common.php
diff -u pear/MDB/MDB/Common.php:1.89 pear/MDB/MDB/Common.php:1.90
--- pear/MDB/MDB/Common.php:1.89 Mon Feb 3 09:31:53 2003
+++ pear/MDB/MDB/Common.php Wed Feb 5 07:33:52 2003
@@ -42,7 +42,7 @@
// | Author: Lukas Smith <smith@backendmedia.com> |
// +----------------------------------------------------------------------+
//
-// $Id: Common.php,v 1.89 2003/02/03 14:31:53 lsmith Exp $
+// $Id: Common.php,v 1.90 2003/02/05 12:33:52 lsmith Exp $
/**
* @package MDB
@@ -2660,9 +2660,12 @@
function convertResultRow($result, $row)
{
if (isset($this->result_types[$result])) {
- $current_column = 0;
+ $current_column = -1;
foreach($row as $key => $column) {
- if (!isset($column)) {
+ ++$current_column;
+ if (!isset($this->result_types[$result][$current_column])
+ ||!isset($column)
+ ) {
continue;
}
switch ($type = $this->result_types[$result][$current_column]) {
@@ -2681,10 +2684,9 @@
$row[$key] = $value;
break;
}
- ++$current_column;
}
}
- return($row);
+ return ($row);
}
// }}}