mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-07 20:46:24 +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
|
* @access private
|
||||||
*/
|
*/
|
||||||
function bake($path, $skel = null, $skip = array('empty')) {
|
function bake($path, $skel = null, $skip = array('empty')) {
|
||||||
if (!$skel) {
|
if (!$skel && !empty($this->params['skel'])) {
|
||||||
$skel = $this->params['skel'];
|
$skel = $this->params['skel'];
|
||||||
}
|
}
|
||||||
while (!$skel) {
|
while (!$skel) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue