cvs: pear /MDB2 MDB2.php

From: Date: Thu, 05 Oct 2006 22:08:53 +0000
Subject: cvs: pear /MDB2 MDB2.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-42423@lists.php.net to get a copy of this message
lsmith Thu Oct 5 22:08:53 2006 UTC Modified files: /pear/MDB2 MDB2.php Log: - fixed getColumnNames() optional parameter handling (Bug #8857) http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2.php?r1=1.260&r2=1.261&diff_format=u Index: pear/MDB2/MDB2.php diff -u pear/MDB2/MDB2.php:1.260 pear/MDB2/MDB2.php:1.261 --- pear/MDB2/MDB2.php:1.260 Tue Sep 26 09:50:39 2006 +++ pear/MDB2/MDB2.php Thu Oct 5 22:08:52 2006 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: MDB2.php,v 1.260 2006/09/26 09:50:39 lsmith Exp $ +// $Id: MDB2.php,v 1.261 2006/10/05 22:08:52 lsmith Exp $ // /** @@ -3619,7 +3619,7 @@ * * @access public */ - function getColumnNames($reverse = false) + function getColumnNames($flip = false) { if (!isset($this->column_names)) { $result = $this->_getColumnNames(); @@ -3628,8 +3628,8 @@ } $this->column_names = $result; } - if ($reverse) { - return array_reverse($this->column_names); + if ($flip) { + return array_flip($this->column_names); } return $this->column_names; }

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