cvs: pear /MDB common.php
| From: | Lukas Smith | Date: | Thu, 15 Aug 2002 15:28:11 +0000 |
| Subject: | cvs: pear /MDB common.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-5760@lists.php.net to get a copy of this message | ||
lsmith Thu Aug 15 11:28:11 2002 EDT
Modified files:
/pear/MDB common.php
Log:
minor fix for fetchAll when using DB_FETCHMODE_ASSOC
Index: pear/MDB/common.php
diff -u pear/MDB/common.php:1.47 pear/MDB/common.php:1.48
--- pear/MDB/common.php:1.47 Thu Aug 15 07:09:24 2002
+++ pear/MDB/common.php Thu Aug 15 11:28:11 2002
@@ -42,7 +42,7 @@
// | Author: Lukas Smith <smith@dybnet.de> |
// +----------------------------------------------------------------------+
//
-// $Id: common.php,v 1.47 2002/08/15 11:09:24 lsmith Exp $
+// $Id: common.php,v 1.48 2002/08/15 15:28:11 lsmith Exp $
require_once 'PEAR.php';
@@ -3810,7 +3810,7 @@
$key = array_shift($res);
}
if (!$force_array && sizeof($res) <= 1) {
- $res = $res[0];
+ $res = array_shift($res);
}
if ($group) {
$all[$key][] = $res;