prevent undefined index error baking a new project

if you call `cake bake project` the skel param is not present
This commit is contained in:
AD7six 2011-04-16 19:22:53 +02:00
parent 0c4a16bc98
commit a0fce70c13

View file

@ -135,7 +135,7 @@ class ProjectTask extends Shell {
* @access private
*/
function bake($path, $skel = null, $skip = array('empty')) {
if (!$skel) {
if (!$skel && !empty($this->params['skel'])) {
$skel = $this->params['skel'];
}
while (!$skel) {
@ -384,4 +384,4 @@ class ProjectTask extends Shell {
));
}
}
}