Skip to content

Commit

Permalink
Fixing return by reference error on the use of ConnectionManager::get…
Browse files Browse the repository at this point in the history
…DataSource() on a non-existing datasource.
  • Loading branch information
jperras committed Sep 24, 2009
1 parent 0c0e5d1 commit 11365e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cake/libs/model/connection_manager.php
Expand Up @@ -114,7 +114,8 @@ function &getDataSource($name) {
$_this->_dataSources[$name]->configKeyName = $name;
} else {
trigger_error(sprintf(__("ConnectionManager::getDataSource - Non-existent data source %s", true), $name), E_USER_ERROR);
return null;
$null = null;
return $null;
}

$return =& $_this->_dataSources[$name];
Expand Down

0 comments on commit 11365e7

Please sign in to comment.