cvs: pear /MDB2/MDB2 Extended.php

From: Date: Sat, 17 Jun 2006 12:08:27 +0000
Subject: cvs: pear /MDB2/MDB2 Extended.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-40783@lists.php.net to get a copy of this message
lsmith Sat Jun 17 12:08:27 2006 UTC Modified files: /pear/MDB2/MDB2 Extended.php Log: - minor tweak in select list generation in autoExecute() http://cvs.php.net/viewcvs.cgi/pear/MDB2/MDB2/Extended.php?r1=1.45&r2=1.46&diff_format=u Index: pear/MDB2/MDB2/Extended.php diff -u pear/MDB2/MDB2/Extended.php:1.45 pear/MDB2/MDB2/Extended.php:1.46 --- pear/MDB2/MDB2/Extended.php:1.45 Sat Jun 17 12:07:00 2006 +++ pear/MDB2/MDB2/Extended.php Sat Jun 17 12:08:26 2006 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: Extended.php,v 1.45 2006/06/17 12:07:00 lsmith Exp $ +// $Id: Extended.php,v 1.46 2006/06/17 12:08:26 lsmith Exp $ /** * @package MDB2 @@ -133,8 +133,11 @@ $where = false, $types = null, $result_class = true, $result_types = MDB2_PREPARE_MANIP) { $fields_values = (array)$fields_values; - if (MDB2_AUTOQUERY_SELECT && is_array($result_types)) { - $keys = array_keys($result_types); + $keys = array(); + if (MDB2_AUTOQUERY_SELECT) { + if (is_array($result_types)) { + $keys = array_keys($result_types); + } } else { $keys = array_keys($fields_values); }

« previous php.pear.cvs (#40783) next »