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:
db525c7
)
Fix tags not being set in Special:Block
author
Justin Du
<justin.d128@gmail.com>
Fri, 27 Jan 2017 15:31:47 +0000
(09:31 -0600)
committer
MtDu
<justin.d128@gmail.com>
Sun, 29 Jan 2017 18:22:18 +0000
(18:22 +0000)
Currently, a PHP error is thrown when tags are not set
in Special:Block on line 832. This patch fixes this
by adding an extra isset() check to see if the tags
variable is set.
Bug: T156486
Change-Id: Ib8722bffbcac5953263ded41eceb3d389d0932f0
includes/specials/SpecialBlock.php
patch
|
blob
|
history
diff --git
a/includes/specials/SpecialBlock.php
b/includes/specials/SpecialBlock.php
index
93cb377
..
c18ae0e
100644
(file)
--- a/
includes/specials/SpecialBlock.php
+++ b/
includes/specials/SpecialBlock.php
@@
-829,7
+829,7
@@
class SpecialBlock extends FormSpecialPage {
$logEntry->setRelations( [ 'ipb_id' => $blockIds ] );
$logId = $logEntry->insert();
- if (
count
( $data['Tags'] ) ) {
+ if (
!empty
( $data['Tags'] ) ) {
$logEntry->setTags( $data['Tags'] );
}