cvs: php4 /pear/DB common.php
| From: | Stig Bakken | Date: | Mon, 12 Mar 2001 09:33:21 +0000 |
| Subject: | cvs: php4 /pear/DB common.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-4503@lists.php.net to get a copy of this message | ||
ssb Mon Mar 12 01:33:21 2001 EDT
Modified files:
/php4/pear/DB common.php
Log:
* bugfix (thanks to Alexey Borzov)
Index: php4/pear/DB/common.php
diff -u php4/pear/DB/common.php:1.38 php4/pear/DB/common.php:1.39
--- php4/pear/DB/common.php:1.38 Mon Feb 19 04:22:25 2001
+++ php4/pear/DB/common.php Mon Mar 12 01:33:21 2001
@@ -721,7 +721,8 @@
}
} else {
// return scalar values
- while (($row = $this->fetchRow($res)) && !DB::isError($row)) {
+ while (($row = $this->fetchRow($res, DB_FETCHMODE_ORDERED)) &&
+ !DB::isError($row)) {
$results[$row[0]] = $row[1];
}
}