dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32d5563
)
Hygiene: use null-coalescing operator when operating on tags
author
Piotr Miazga
<piotr@polishdeveloper.pl>
Fri, 1 Mar 2019 18:13:28 +0000
(19:13 +0100)
committer
Piotr Miazga
<piotr@polishdeveloper.pl>
Fri, 1 Mar 2019 18:13:28 +0000
(19:13 +0100)
Change-Id: I7d5b4e05ee6c010b4f9438bc4871a3369b1871a6
includes/logging/LogEntry.php
patch
|
blob
|
history
diff --git
a/includes/logging/LogEntry.php
b/includes/logging/LogEntry.php
index
5706f2d
..
937fa37
100644
(file)
--- a/
includes/logging/LogEntry.php
+++ b/
includes/logging/LogEntry.php
@@
-776,11
+776,7
@@
class ManualLogEntry extends LogEntryBase {
if ( $to === 'rc' || $to === 'rcandudp' ) {
// save RC, passing tags so they are applied there
- $tags = $this->getTags();
- if ( is_null( $tags ) ) {
- $tags = [];
- }
- $rc->addTags( $tags );
+ $rc->addTags( $this->getTags() ?? [] );
$rc->save( $rc::SEND_NONE );
}