mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-02 07:39:45 +00:00
Fixing error introduced in my last commit
This commit is contained in:
parent
d08f916179
commit
4110ab7952
1 changed files with 1 additions and 1 deletions
|
@ -355,7 +355,7 @@ class DbConfigTask extends Shell {
|
||||||
App::uses('ConnectionManager', 'Model');
|
App::uses('ConnectionManager', 'Model');
|
||||||
$configs = ConnectionManager::enumConnectionObjects();
|
$configs = ConnectionManager::enumConnectionObjects();
|
||||||
|
|
||||||
$useDbConfig = current($configs);
|
$useDbConfig = key($configs);
|
||||||
if (!is_array($configs) || empty($configs)) {
|
if (!is_array($configs) || empty($configs)) {
|
||||||
return $this->execute();
|
return $this->execute();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue