diff --git a/src/Extensions/CatalogPageExtension.php b/src/Extensions/CatalogPageExtension.php index b8f21ca..9b1b77c 100644 --- a/src/Extensions/CatalogPageExtension.php +++ b/src/Extensions/CatalogPageExtension.php @@ -178,8 +178,10 @@ public static function getClassSortFieldName($class) */ public function canCreate($member) { - return count($this->getCatalogParents()) === 0 - ? false - : null; + $catalogParents = $this->getCatalogParents(); + if(isset($catalogParents) && count($catalogParents) === 0) + return false; + else + return true; } }