From dfac9f5813df7d4c7c812c381364c8898333f559 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 11 Sep 2024 17:14:53 +0200 Subject: PHPStan booleansInConditions (#6793) * PHPStan booleansInConditions * Uniformisation --- app/views/helpers/index/article.phtml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'app/views/helpers/index/article.phtml') diff --git a/app/views/helpers/index/article.phtml b/app/views/helpers/index/article.phtml index bdc108f1e..0a9c75bcd 100644 --- a/app/views/helpers/index/article.phtml +++ b/app/views/helpers/index/article.phtml @@ -4,6 +4,9 @@ /** @var FreshRSS_View $this */ $entry = $this->entry; $feed = $this->feed; + if ($feed === null || $entry === null) { + return; + } ?>
@@ -29,7 +32,7 @@ - +
show_feed_name === 't') { ?> @@ -42,7 +45,7 @@ topline_link && FreshRSS_Context::userConf()->show_article_icons == 't') { ?>
@@ -93,7 +96,7 @@ topline_link && FreshRSS_Context::userConf()->show_article_icons == 'a') { ?>
-- cgit v1.2.3