Merge "Improve logging of exceptions which are not thrown but attached to context"
[lhc/web/wiklou.git] / 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'] );
                }