Skip to content

add children placeholder to tplInner#306

Open
RusWebBear wants to merge 1 commit intomodx-pro:masterfrom
RusWebBear:patch-1
Open

add children placeholder to tplInner#306
RusWebBear wants to merge 1 commit intomodx-pro:masterfrom
RusWebBear:patch-1

Conversation

@RusWebBear
Copy link

No description provided.

'classNames' => $this->pdoTools->config['innerClass'],
'classnames' => $this->pdoTools->config['innerClass'],
'level' => $this->level,
'children' => $row['children']?:0,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change is logical and eliminates the lack of a placeholder for the number of child elements in tplInner.

Suggested change
'children' => $row['children']?:0,
'children' => $row['children'] ?? 0,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants