diff options
| author | 2024-09-11 17:14:53 +0200 | |
|---|---|---|
| committer | 2024-09-11 17:14:53 +0200 | |
| commit | dfac9f5813df7d4c7c812c381364c8898333f559 (patch) | |
| tree | 978496d0a8d8b0d6b5dbe836c6829296133b337c /app/views/stats | |
| parent | 31c8846791d4b5316fbc790202f79545c012f9c2 (diff) | |
PHPStan booleansInConditions (#6793)
* PHPStan booleansInConditions
* Uniformisation
Diffstat (limited to 'app/views/stats')
| -rw-r--r-- | app/views/stats/repartition.phtml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/stats/repartition.phtml b/app/views/stats/repartition.phtml index 030db0906..dd4ff9b29 100644 --- a/app/views/stats/repartition.phtml +++ b/app/views/stats/repartition.phtml @@ -17,7 +17,7 @@ if (!empty($feeds)) { echo '<optgroup label="', $category->name(), '">'; foreach ($feeds as $feed) { - if ($this->feed && $feed->id() == $this->feed->id()) { + if ($this->feed !== null && $feed->id() == $this->feed->id()) { echo '<option value="', $feed->id(), '" selected="selected" data-url="', _url('stats', 'repartition', 'id', $feed->id()), '">', $feed->name(), '</option>'; } else { @@ -30,7 +30,7 @@ }?> </select> - <?php if ($this->feed) {?> + <?php if ($this->feed !== null) {?> <a class="btn" href="<?= _url('subscription', 'feed', 'id', $this->feed->id()) ?>"> <?= _i('configure') ?> <?= _t('gen.action.manage') ?> </a> |
