diff --git a/concrete/blocks/topic_list/controller.php b/concrete/blocks/topic_list/controller.php index b808ca0dec7..66a58f8f9cc 100644 --- a/concrete/blocks/topic_list/controller.php +++ b/concrete/blocks/topic_list/controller.php @@ -246,7 +246,7 @@ public function getImportData($blockNode, $page) $treeName = (string) $blockNode->data->tree; $page = (string) $blockNode->data->cParentID; $tree = TopicTree::getByName($treeName); - $args['topicTreeID'] = $tree?->getTreeID() ?: null; + $args['topicTreeID'] = empty($tree) ? null : $tree->getTreeID(); $args['cParentID'] = 0; $args['title'] = (string) $blockNode->data->title; $args['mode'] = (string) $blockNode->data->mode;