Skip to content

Commit

Permalink
[PHP 8.1] Fix indexing newsfeeds with no summary
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge committed Jun 19, 2022
1 parent 6860ffc commit c3843fa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions administrator/components/com_finder/src/Indexer/Indexer.php
Expand Up @@ -315,6 +315,11 @@ public function index($item, $format = 'html')
$item->end_date = (int) $item->end_date != 0 ? $item->end_date : null;

// Prepare the item description.
if ($item->summary === null)
{
$item->summary = '';
}

$item->description = Helper::parse($item->summary);

/*
Expand Down

0 comments on commit c3843fa

Please sign in to comment.