Skip to content
Browse files

Fixing error introduced in my last commit

  • Loading branch information...
1 parent d08f916 commit 4110ab79523786095d1bdf1f6c9911e247e0436a @lorenzo lorenzo committed Oct 3, 2011
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();
}

0 comments on commit 4110ab7

Please sign in to comment.
Something went wrong with that request. Please try again.