Merge "Fix BlockList params for non-editing partial blocks"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 16 Jan 2019 19:23:00 +0000 (19:23 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 16 Jan 2019 19:23:00 +0000 (19:23 +0000)
includes/specials/pagers/BlockListPager.php

index a0b14d2..205ffbf 100644 (file)
@@ -199,7 +199,9 @@ class BlockListPager extends TablePager {
 
                                if ( !$row->ipb_sitewide && $this->restrictions ) {
                                        $list = $this->getRestrictionListHTML( $this->restrictions, $row );
-                                       $properties[] = htmlspecialchars( $msg['blocklist-editing'] ) . $list;
+                                       if ( $list ) {
+                                               $properties[] = htmlspecialchars( $msg['blocklist-editing'] ) . $list;
+                                       }
                                }
 
                                if ( $row->ipb_anon_only ) {