cvs: pear /MDB_QueryTool/QueryTool Query.php

From: Date: Thu, 11 Mar 2004 23:44:58 +0000
Subject: cvs: pear /MDB_QueryTool/QueryTool Query.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-17318@lists.php.net to get a copy of this message
quipo Thu Mar 11 18:44:58 2004 EDT Modified files: /pear/MDB_QueryTool/QueryTool Query.php Log: - Log::factory() needs to return a reference - cosmetic fixes http://cvs.php.net/diff.php/pear/MDB_QueryTool/QueryTool/Query.php?r1=1.19&r2=1.20&ty=u Index: pear/MDB_QueryTool/QueryTool/Query.php diff -u pear/MDB_QueryTool/QueryTool/Query.php:1.19 pear/MDB_QueryTool/QueryTool/Query.php:1.20 --- pear/MDB_QueryTool/QueryTool/Query.php:1.19 Fri Nov 28 09:23:18 2003 +++ pear/MDB_QueryTool/QueryTool/Query.php Thu Mar 11 18:44:58 2004 @@ -15,7 +15,7 @@ // | Author: Lorenzo Alberton <l.alberton at quipo.it> | // +----------------------------------------------------------------------+ // -// $Id: Query.php,v 1.19 2003/11/28 14:23:18 quipo Exp $ +// $Id: Query.php,v 1.20 2004/03/11 23:44:58 quipo Exp $ // // This is just a port of DB_QueryTool, originally written by // Wolfram Kriesing and Paolo Panto, vision:produktion <wk@visionp.de> @@ -1734,7 +1734,7 @@ function execute($query=null, $method='getAll') { $this->writeLog(); - if ($query==null) { + if (is_null($query)) { $query = $this->_buildSelectQuery(); } $this->writeLog('query built: '.$query); @@ -1782,7 +1782,7 @@ return; } if (!$this->_logObject) { - $this->_logObject = Log::factory('file', $this->options['logfile']); + $this->_logObject =& Log::factory('file', $this->options['logfile']); } if ($text == 'start query' || $text === 'end query') { @@ -1830,7 +1830,7 @@ function returnResult(&$result) { if ($this->_useResult) { - if ($result == false) { + if ($result === false) { return false; } return new MDB_QueryTool_Result($result);

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