initialize $construct variable

This commit is contained in:
AD7six 2012-06-06 22:24:15 +02:00
parent a5fabcc1dc
commit d1475b1fd3

View file

@ -452,7 +452,7 @@ class TestTask extends BakeTask {
*/
public function generateConstructor($type, $fullClassName, $plugin) {
$type = strtolower($type);
$pre = $post = '';
$pre = $construct = $post = '';
if ($type == 'model') {
$construct = "ClassRegistry::init('{$plugin}$fullClassName');\n";
}