diff options
| author | 2023-04-23 11:58:15 +0200 | |
|---|---|---|
| committer | 2023-04-23 11:58:15 +0200 | |
| commit | 115724622fa32e1b7981e378e87ccfb770450cb1 (patch) | |
| tree | 4d7072768076fd76f2f1877757f3e2e395ab2ded /app/views | |
| parent | 8abe53d879ef188a5c1cc394894ce211fcfa9f92 (diff) | |
PHPStan Level 7 for ten more files (#5327)
* PHPStan Level 7 for nine more files
* Minor syntax
* One more
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/index/reader.phtml | 1 | ||||
| -rw-r--r-- | app/views/user/details.phtml | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/app/views/index/reader.phtml b/app/views/index/reader.phtml index dde501a92..221c92496 100644 --- a/app/views/index/reader.phtml +++ b/app/views/index/reader.phtml @@ -53,6 +53,7 @@ $MAX_TAGS_DISPLAYED = FreshRSS_Context::$user_conf->show_tags_max; <?php $feed = FreshRSS_CategoryDAO::findFeed($this->categories, $item->feedId()); //We most likely already have the feed object in cache if ($feed == null) $feed = $item->feed(); + if ($feed == null) continue; $favoriteUrl = array('c' => 'entry', 'a' => 'bookmark', 'params' => array('id' => $item->id())); if ($item->isFavorite()) { $favoriteUrl['params']['is_favorite'] = 0; diff --git a/app/views/user/details.phtml b/app/views/user/details.phtml index d5cfe731c..3387584eb 100644 --- a/app/views/user/details.phtml +++ b/app/views/user/details.phtml @@ -28,14 +28,14 @@ <div class="form-group"> <label class="group-name"><?= _t('admin.user.feed_count') ?></label> <div class="group-controls"> - <?= format_number($this->details['feed_count']) ?> + <?= format_number($this->details['feed_count'] ?: 0) ?> </div> </div> <div class="form-group"> <label class="group-name"><?= _t('admin.user.article_count') ?></label> <div class="group-controls"> - <?= format_number($this->details['article_count']) ?> + <?= format_number($this->details['article_count'] ?: 0) ?> </div> </div> |
