mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
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:
parent
0c4a16bc98
commit
a0fce70c13
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue