Merge "Fix tags not being set in Special:Block"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sun, 29 Jan 2017 20:53:07 +0000 (20:53 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sun, 29 Jan 2017 20:53:07 +0000 (20:53 +0000)
includes/specials/SpecialBlock.php

index 93cb377..c18ae0e 100644 (file)
@@ -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'] );
                }