cvs: pear /MDB2/MDB2 Extended.php
| From: | David Coallier | Date: | Mon, 09 Oct 2006 01:28:58 +0000 |
| Subject: | cvs: pear /MDB2/MDB2 Extended.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-42462@lists.php.net to get a copy of this message | ||
davidc Mon Oct 9 01:28:58 2006 UTC
Modified files:
/pear/MDB2/MDB2 Extended.php
Log:
Fix for bug #8878, added an extra if in the autoExecute method of the
Extended driver
http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Extended.php?r1=1.54&r2=1.55&diff_format=u
Index: pear/MDB2/MDB2/Extended.php
diff -u pear/MDB2/MDB2/Extended.php:1.54 pear/MDB2/MDB2/Extended.php:1.55
--- pear/MDB2/MDB2/Extended.php:1.54 Wed Sep 20 12:45:09 2006
+++ pear/MDB2/MDB2/Extended.php Mon Oct 9 01:28:57 2006
@@ -42,7 +42,7 @@
// | Author: Lukas Smith <smith@pooteeweet.org> |
// +----------------------------------------------------------------------+
//
-// $Id: Extended.php,v 1.54 2006/09/20 12:45:09 lsmith Exp $
+// $Id: Extended.php,v 1.55 2006/10/09 01:28:57 davidc Exp $
/**
* @package MDB2
@@ -135,7 +135,9 @@
if ($mode == MDB2_AUTOQUERY_SELECT) {
if (is_array($result_types)) {
$keys = array_keys($result_types);
- } else {
+ } elseif (!empty($fields_values)) {
+ $keys = $fields_values;
+ } else {
$keys = array();
}
} else {