From 1c816f483f7757d6fd5989ef4d1d0ec0fcbc1b00 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Tue, 25 Jul 2017 17:45:00 -0700 Subject: [PATCH] Follow-up 2a04f2d: don't pass [''] as tag filter when tagfilter='' Change-Id: I472ff9524840c01131995a884283ca426e133879 --- includes/specials/SpecialRecentchanges.php | 2 +- includes/specials/SpecialRecentchangeslinked.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialRecentchanges.php b/includes/specials/SpecialRecentchanges.php index 852bfa4905..1248007892 100644 --- a/includes/specials/SpecialRecentchanges.php +++ b/includes/specials/SpecialRecentchanges.php @@ -429,7 +429,7 @@ class SpecialRecentChanges extends ChangesListSpecialPage { $fields[] = 'page_latest'; $join_conds['page'] = [ 'LEFT JOIN', 'rc_cur_id=page_id' ]; - $tagFilter = explode( '|', $opts['tagfilter'] ); + $tagFilter = $opts['tagfilter'] ? explode( '|', $opts['tagfilter'] ) : []; ChangeTags::modifyDisplayQuery( $tables, $fields, diff --git a/includes/specials/SpecialRecentchangeslinked.php b/includes/specials/SpecialRecentchangeslinked.php index 80ec2b16cf..fee336e435 100644 --- a/includes/specials/SpecialRecentchangeslinked.php +++ b/includes/specials/SpecialRecentchangeslinked.php @@ -104,7 +104,7 @@ class SpecialRecentChangesLinked extends SpecialRecentChanges { $select[] = 'page_latest'; } - $tagFilter = explode( '|', $opts['tagfilter'] ); + $tagFilter = $opts['tagfilter'] ? explode( '|', $opts['tagfilter'] ) : []; ChangeTags::modifyDisplayQuery( $tables, $select, -- 2.20.1