mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-10-22 19:05:45 +03:00
fix: bug in prior refactor (#4197)
This commit is contained in:
parent
c11bc184ca
commit
9215b95779
2 changed files with 2 additions and 2 deletions
|
@ -145,7 +145,7 @@ class DisplayAction implements ActionInterface
|
||||||
if ($errorCount >= $reportLimit) {
|
if ($errorCount >= $reportLimit) {
|
||||||
if ($errorOutput === 'feed') {
|
if ($errorOutput === 'feed') {
|
||||||
// Render the exception as a feed item
|
// Render the exception as a feed item
|
||||||
$items[] = $this->createFeedItemFromException($e, $bridge);
|
$items = [$this->createFeedItemFromException($e, $bridge)];
|
||||||
} elseif ($errorOutput === 'http') {
|
} elseif ($errorOutput === 'http') {
|
||||||
return new Response(render(__DIR__ . '/../templates/exception.html.php', ['e' => $e]), 500);
|
return new Response(render(__DIR__ . '/../templates/exception.html.php', ['e' => $e]), 500);
|
||||||
} elseif ($errorOutput === 'none') {
|
} elseif ($errorOutput === 'none') {
|
||||||
|
|
|
@ -136,7 +136,7 @@ class FeedItem
|
||||||
{
|
{
|
||||||
$this->title = null;
|
$this->title = null;
|
||||||
if (!is_string($title)) {
|
if (!is_string($title)) {
|
||||||
Debug::log('Title must be a string!');
|
trigger_error('Title must be a string: ' . print_r($title, true));
|
||||||
} else {
|
} else {
|
||||||
$this->title = truncate(trim($title));
|
$this->title = truncate(trim($title));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue