mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing return by reference error on the use of ConnectionManager::getDataSource() on a non-existing datasource.
This commit is contained in:
parent
0c0e5d111b
commit
11365e7a09
1 changed files with 2 additions and 1 deletions
|
@ -114,7 +114,8 @@ class ConnectionManager extends Object {
|
||||||
$_this->_dataSources[$name]->configKeyName = $name;
|
$_this->_dataSources[$name]->configKeyName = $name;
|
||||||
} else {
|
} else {
|
||||||
trigger_error(sprintf(__("ConnectionManager::getDataSource - Non-existent data source %s", true), $name), E_USER_ERROR);
|
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];
|
$return =& $_this->_dataSources[$name];
|
||||||
|
|
Loading…
Reference in a new issue