Skip to content

Update CatalogPageAdmin.php - #67

Open
alessandromarotta wants to merge 1 commit into
isobar-nz:masterfrom
alessandromarotta:patch-2
Open

Update CatalogPageAdmin.php#67
alessandromarotta wants to merge 1 commit into
isobar-nz:masterfrom
alessandromarotta:patch-2

Conversation

@alessandromarotta

Copy link
Copy Markdown

$this->getCatalogParents() can be NULL (if no "parent_class" has been set) or a DATALIST (SiteTree), so before to call the count() method we need to check if it's not null otherwise we get a Warning message (unable to call "count" on no countable data)

$this->getCatalogParents() can be NULL (if no "parent_class" has been set) or a DATALIST (SiteTree), so before to call the count() method we need to check if it's not null otherwise we get a Warning massage
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.

1 participant