From ac809608050f6944c0608702fe830a91633d8493 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 6 Oct 2008 23:21:30 +0000 Subject: [PATCH] Query and UI cleanup --- includes/specials/SpecialIpblocklist.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/specials/SpecialIpblocklist.php b/includes/specials/SpecialIpblocklist.php index fb12b9c3ce..242b6cc37d 100644 --- a/includes/specials/SpecialIpblocklist.php +++ b/includes/specials/SpecialIpblocklist.php @@ -269,7 +269,7 @@ class IPUnblockForm { $conds['ipb_expiry'] = 'infinity'; } if( $this->hideaddressblocks ) { - $conds[] = "ipb_range_end > ipb_range_start"; + $conds[] = "ipb_user != 0 OR ipb_range_end > ipb_range_start"; } $pager = new IPBlocklistPager( $this, $conds ); @@ -285,6 +285,7 @@ class IPUnblockForm { $wgOut->addHTML( $this->searchForm() ); $wgOut->addWikiMsg( 'ipblocklist-no-results' ); } else { + $wgOut->addHTML( $this->searchForm() . $this->showhideLinks() ); $wgOut->addWikiMsg( 'ipblocklist-empty' ); } } -- 2.20.1