Skip to content

Commit

Permalink
Fix notice when baking db config: Undefined variable 'driver'.
Browse files Browse the repository at this point in the history
  • Loading branch information
majna committed Nov 4, 2011
1 parent b983aa9 commit 1455c59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Console/Command/Task/DbConfigTask.php
Expand Up @@ -314,7 +314,7 @@ public function bake($configs) {
extract($config);

$out .= "\tpublic \${$name} = array(\n";
$out .= "\t\t'datasource' => 'Database/{$driver}',\n";
$out .= "\t\t'datasource' => 'Database/{$datasource}',\n";
$out .= "\t\t'persistent' => {$persistent},\n";
$out .= "\t\t'host' => '{$host}',\n";

Expand Down

0 comments on commit 1455c59

Please sign in to comment.