[web-php] master: Fix: Run 'make coding-standards'
| From: | Andreas Möller via Derick Rethans | Date: | Thu, 07 Dec 2023 11:58:59 +0000 |
| Subject: | [web-php] master: Fix: Run 'make coding-standards' | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-31230@lists.php.net to get a copy of this message | ||
Author: Andreas Möller (localheinz)
Committer: Derick Rethans (derickr)
Date: 2023-12-07T11:45:18Z
Commit: https://github.com/php/web-php/commit/5542743d86168a5bd65f666811c7cab96b5bf401
Raw diff: https://github.com/php/web-php/commit/5542743d86168a5bd65f666811c7cab96b5bf401.diff
Fix: Run 'make coding-standards'
Changed paths:
M include/layout.inc
Diff:
diff --git a/include/layout.inc b/include/layout.inc
index c63c2738cf..0b85862704 100644
--- a/include/layout.inc
+++ b/include/layout.inc
@@ -379,7 +379,7 @@ function print_news($news, $dog, $max = 5, $onlyyear = null, $return = false) {
// Only print entries in the provided s/dog/cat/ egory
// If $dog is null, everything matches
foreach ($item["category"] as $category) {
- if (is_null($dog) || in_array($category["term"], (array)$dog, true)) {
+ if (null === $dog || in_array($category["term"], (array)$dog, true)) {
$ok = true;
$count++;
break;