From: <var...@us...> - 2014-07-30 15:04:28
|
Revision: 9031 http://sourceforge.net/p/phpwiki/code/9031 Author: vargenau Date: 2014-07-30 15:04:20 +0000 (Wed, 30 Jul 2014) Log Message: ----------- Constructor returns no value Modified Paths: -------------- trunk/lib/WikiDB/ADODB.php Modified: trunk/lib/WikiDB/ADODB.php =================================================================== --- trunk/lib/WikiDB/ADODB.php 2014-07-30 15:03:28 UTC (rev 9030) +++ trunk/lib/WikiDB/ADODB.php 2014-07-30 15:04:20 UTC (rev 9031) @@ -21,7 +21,7 @@ $backend = $m[1]; // Do we have a override? (currently: mysql, sqlite, oracle, mssql, oci8po, postgres7) // TODO: mysqlt (innodb or bdb) - if ($backend == 'pgsql') { // PearDB DSN cross-compatiblity hack (for unit testing) + if ($backend == 'pgsql') { // PearDB DSN cross-compatibility hack (for unit testing) $backend = 'postgres7'; if (is_string($dbparams['dsn'])) $dbparams['dsn'] = $backend . ':' . substr($dbparams['dsn'], 6); @@ -34,7 +34,7 @@ include_once 'lib/WikiDB/backend/' . $backend . '.php'; $backend_class = "WikiDB_backend_" . $backend; $backend = new $backend_class($dbparams); - if (!$backend->_dbh->_connectionID) return false; + if (!$backend->_dbh->_connectionID) return; parent::__construct($backend, $dbparams); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |