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:
committed by
Derick Rethans
parent
cb28db18fa
commit
5542743d86
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user