Skip to content

Commit

Permalink
Applying patch from 'Justas Butkus' to DboSource
Browse files Browse the repository at this point in the history
Fixes issues where reconnect could issue warnings related to
array_merge.  Fixes #1182
  • Loading branch information
markstory committed Oct 12, 2010
1 parent 5e454c1 commit 77f05ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/libs/model/datasources/dbo_source.php
Expand Up @@ -105,7 +105,7 @@ function __construct($config = null, $autoConnect = true) {
* @param array $config An array defining the new configuration settings
* @return boolean True on success, false on failure
*/
function reconnect($config = null) {
function reconnect($config = array()) {
$this->disconnect();
$this->setConfig($config);
$this->_sources = null;
Expand Down

0 comments on commit 77f05ab

Please sign in to comment.