1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Fix: Run 'make coding-standards'

This commit is contained in:
Andreas Möller
2023-12-07 12:29:25 +01:00
committed by Derick Rethans
parent cb28db18fa
commit 5542743d86

View File

@@ -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;