Skip to content

Commit

Permalink
prevent undefined index error baking a new project
Browse files Browse the repository at this point in the history
if you call `cake bake project` the skel param is not present
  • Loading branch information
AD7six committed Apr 16, 2011
1 parent 0c4a16b commit a0fce70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Console/Command/Task/ProjectTask.php
Expand Up @@ -135,7 +135,7 @@ public function execute() {
* @access private
*/
function bake($path, $skel = null, $skip = array('empty')) {
if (!$skel) {
if (!$skel && !empty($this->params['skel'])) {
$skel = $this->params['skel'];
}
while (!$skel) {
Expand Down Expand Up @@ -384,4 +384,4 @@ public function getOptionParser() {
));
}

}
}

0 comments on commit a0fce70

Please sign in to comment.