From: jenkins-bot Date: Sun, 29 Jan 2017 20:53:07 +0000 (+0000) Subject: Merge "Fix tags not being set in Special:Block" X-Git-Tag: 1.31.0-rc.0~4202 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=e2b36bb071cef740ed67debc7c0f327d159d7bdb;hp=d2ec5fbff5312f59ddac89afcf1466d0ef6bd2d5;p=lhc%2Fweb%2Fwiklou.git Merge "Fix tags not being set in Special:Block" --- diff --git a/includes/specials/SpecialBlock.php b/includes/specials/SpecialBlock.php index 93cb3773bd..c18ae0e336 100644 --- 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'] ); }