Skip to content

Commit

Permalink
fix: bug in prior refactor (#4197)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvikan authored Aug 7, 2024
1 parent c11bc18 commit 9215b95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion actions/DisplayAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ private function createResponse(Request $request, BridgeAbstract $bridge, string
if ($errorCount >= $reportLimit) {
if ($errorOutput === 'feed') {
// Render the exception as a feed item
$items[] = $this->createFeedItemFromException($e, $bridge);
$items = [$this->createFeedItemFromException($e, $bridge)];
} elseif ($errorOutput === 'http') {
return new Response(render(__DIR__ . '/../templates/exception.html.php', ['e' => $e]), 500);
} elseif ($errorOutput === 'none') {
Expand Down
2 changes: 1 addition & 1 deletion lib/FeedItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function setTitle($title)
{
$this->title = null;
if (!is_string($title)) {
Debug::log('Title must be a string!');
trigger_error('Title must be a string: ' . print_r($title, true));
} else {
$this->title = truncate(trim($title));
}
Expand Down

0 comments on commit 9215b95

Please sign in to comment.