mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +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');
|
||||
$configs = ConnectionManager::enumConnectionObjects();
|
||||
|
||||
$useDbConfig = current($configs);
|
||||
$useDbConfig = key($configs);
|
||||
if (!is_array($configs) || empty($configs)) {
|
||||
return $this->execute();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue