Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing error introduced in my last commit

  • Loading branch information...
commit 4110ab79523786095d1bdf1f6c9911e247e0436a 1 parent d08f916
@lorenzo lorenzo authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Cake/Console/Command/Task/DbConfigTask.php
View
2  lib/Cake/Console/Command/Task/DbConfigTask.php
@@ -355,7 +355,7 @@ public function getConfig() {
App::uses('ConnectionManager', 'Model');
$configs = ConnectionManager::enumConnectionObjects();
- $useDbConfig = current($configs);
+ $useDbConfig = key($configs);
if (!is_array($configs) || empty($configs)) {
return $this->execute();
}
Please sign in to comment.
Something went wrong with that request. Please try again.