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/stats/repartition.phtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/views/stats') 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 ''; foreach ($feeds as $feed) { - if ($this->feed && $feed->id() == $this->feed->id()) { + if ($this->feed !== null && $feed->id() == $this->feed->id()) { echo ''; } else { @@ -30,7 +30,7 @@ }?> - feed) {?> + feed !== null) {?> -- cgit v1.2.3