dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Safe replacement of a lot of `!count()` with `=== []`
[lhc/web/wiklou.git]
/
includes
/
skins
/
Skin.php
diff --git
a/includes/skins/Skin.php
b/includes/skins/Skin.php
index
08ff8f0
..
e31bc06
100644
(file)
--- a/
includes/skins/Skin.php
+++ b/
includes/skins/Skin.php
@@
-519,7
+519,7
@@
abstract class Skin extends ContextSource {
$out = $this->getOutput();
$allCats = $out->getCategoryLinks();
- if (
!count( $allCats )
) {
+ if (
$allCats === []
) {
return '';
}