From a0fce70c13fce9bf6f875460e144f283a2a885a7 Mon Sep 17 00:00:00 2001 From: AD7six Date: Sat, 16 Apr 2011 19:22:53 +0200 Subject: [PATCH] prevent undefined index error baking a new project if you call `cake bake project` the skel param is not present --- lib/Cake/Console/Command/Task/ProjectTask.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Console/Command/Task/ProjectTask.php b/lib/Cake/Console/Command/Task/ProjectTask.php index dd02e8170ef..c5751fb69b7 100644 --- a/lib/Cake/Console/Command/Task/ProjectTask.php +++ b/lib/Cake/Console/Command/Task/ProjectTask.php @@ -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) { @@ -384,4 +384,4 @@ public function getOptionParser() { )); } -} +} \ No newline at end of file