Skip to content

Commit

Permalink
support PHP 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
wordish authored Oct 8, 2024
1 parent 085306a commit f85db6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion concrete/blocks/topic_list/controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f85db6d

Please sign in to comment.