Fixing return by reference error on the use of ConnectionManager::getDataSource() on a non-existing datasource.

This commit is contained in:
jperras 2009-09-24 19:29:35 -04:00
parent 0c0e5d111b
commit 11365e7a09

View file

@ -114,7 +114,8 @@ class ConnectionManager extends Object {
$_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];