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;

-- 
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to