From: <var...@us...> - 2016-02-11 18:00:44
|
Revision: 9800 http://sourceforge.net/p/phpwiki/code/9800 Author: vargenau Date: 2016-02-11 18:00:42 +0000 (Thu, 11 Feb 2016) Log Message: ----------- Add variable initialisation Modified Paths: -------------- trunk/lib/WikiDB/backend/PDO.php Modified: trunk/lib/WikiDB/backend/PDO.php =================================================================== --- trunk/lib/WikiDB/backend/PDO.php 2016-02-11 17:46:56 UTC (rev 9799) +++ trunk/lib/WikiDB/backend/PDO.php 2016-02-11 18:00:42 UTC (rev 9800) @@ -47,6 +47,9 @@ unset($parsed['phptype']); unset($parsed['dbsyntax']); $dbparams['dsn'] = $driver . ":"; + if (!isset($this->_dbh)) { + $this->_dbh = new stdClass(); + } $this->_dbh->database = $parsed['database']; // mysql needs to map database=>dbname, hostspec=>host. TODO for the others. $dsnmap = array('mysql' => array('database' => 'dbname', 'hostspec' => 'host') This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |