Fixing error introduced in my last commit

This commit is contained in:
Jose Lorenzo Rodriguez 2011-10-03 12:08:08 -04:30
parent d08f916179
commit 4110ab7952

View file

@ -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();
}