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
Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient
[lhc/web/wiklou.git]
/
includes
/
changetags
/
ChangeTags.php
diff --git
a/includes/changetags/ChangeTags.php
b/includes/changetags/ChangeTags.php
index
b64f85a
..
429a3b6
100644
(file)
--- a/
includes/changetags/ChangeTags.php
+++ b/
includes/changetags/ChangeTags.php
@@
-1268,7
+1268,7
@@
class ChangeTags {
// store the tag usage statistics
$tagUsage = self::tagUsageStatistics();
- $hitcount =
isset( $tagUsage[$tag] ) ? $tagUsage[$tag] :
0;
+ $hitcount =
$tagUsage[$tag] ??
0;
// do it!
$deleteResult = self::deleteTagEverywhere( $tag );