From f85db6d11c30eae4625210184ee9c15a71351916 Mon Sep 17 00:00:00 2001 From: wordish <42463480+wordish@users.noreply.github.com> Date: Tue, 8 Oct 2024 16:48:53 -0700 Subject: [PATCH] support PHP 7.4 --- concrete/blocks/topic_list/controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;