cvs: php4 /pear/DB common.php
| From: | Stig Bakken | Date: | Tue, 12 Sep 2000 10:35:54 +0000 |
| Subject: | cvs: php4 /pear/DB common.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-1726@lists.php.net to get a copy of this message | ||
ssb Tue Sep 12 03:35:54 2000 EDT
Modified files:
/php4/pear/DB common.php
Log:
DB_common::getAssoc() bug fix
Index: php4/pear/DB/common.php
diff -u php4/pear/DB/common.php:1.19 php4/pear/DB/common.php:1.20
--- php4/pear/DB/common.php:1.19 Mon Sep 11 17:27:50 2000
+++ php4/pear/DB/common.php Tue Sep 12 03:35:54 2000
@@ -527,7 +527,8 @@
if ($cols > 2 || $force_array) {
// return array values
// XXX this part can be optimized
- while ($row = $this->fetchRow($res) && !DB::isError($row)) {
+ while (($row = $this->fetchRow($res, DB_FETCHMODE_ORDERED))
+ && !DB::isError($row)) {
reset($row);
// we copy the row of data into a new array
// to get indices running from 0 again