Skip to content

Commit

Permalink
Merge pull request #11877 from shahroq/fix-11868
Browse files Browse the repository at this point in the history
fix #11868 (topics error on page attr display block)
  • Loading branch information
aembler committed Jan 19, 2024
2 parents b3ea41d + 4a1ead1 commit d866417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion concrete/blocks/page_attribute_display/controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public function getContent()
$content = (string) $image->getTag();
}
} elseif (is_object($content_alt)) {
if (is_array($content) && $content[0] instanceof \Concrete\Core\Tree\Node\Type\Topic) {
if (is_array($content) && isset($content[0]) && $content[0] instanceof \Concrete\Core\Tree\Node\Type\Topic) {
$content = str_replace(', ', "\n", $content_alt->getDisplayValue());
} elseif ($content instanceof SelectValue) {
$content = h((string) $content);
Expand Down

0 comments on commit d866417

Please sign in to comment.