cvs: pear(MDB_1) /MDB/MDB Common.php
| From: | Lorenzo Alberton | Date: | Wed, 18 Feb 2004 10:28:27 +0000 |
| Subject: | cvs: pear(MDB_1) /MDB/MDB Common.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-16638@lists.php.net to get a copy of this message | ||
quipo Wed Feb 18 05:28:27 2004 EDT
Modified files: (Branch: MDB_1)
/pear/MDB/MDB Common.php
Log:
fix bug in fetchCol()
http://cvs.php.net/diff.php/pear/MDB/MDB/Common.php?r1=1.114.4.16&r2=1.114.4.17&ty=u
Index: pear/MDB/MDB/Common.php
diff -u pear/MDB/MDB/Common.php:1.114.4.16 pear/MDB/MDB/Common.php:1.114.4.17
--- pear/MDB/MDB/Common.php:1.114.4.16 Mon Feb 16 03:49:32 2004
+++ pear/MDB/MDB/Common.php Wed Feb 18 05:28:25 2004
@@ -42,7 +42,7 @@
// | Author: Lukas Smith <smith@backendmedia.com> |
// +----------------------------------------------------------------------+
//
-// $Id: Common.php,v 1.114.4.16 2004/02/16 08:49:32 lsmith Exp $
+// $Id: Common.php,v 1.114.4.17 2004/02/18 10:28:25 quipo Exp $
/**
* @package MDB
@@ -3705,7 +3705,7 @@
$column = array();
$row = $this->fetchInto($result, $fetchmode);
if (is_array($row)) {
- if (array_key_exists($colnum, $row)) {
+ if (!array_key_exists($colnum, $row)) {
return($this->raiseError(MDB_ERROR_TRUNCATED));
}
do {