From: Roan Kattouw Date: Wed, 26 Jul 2017 00:45:00 +0000 (-0700) Subject: Follow-up 2a04f2d: don't pass [''] as tag filter when tagfilter='' X-Git-Tag: 1.31.0-rc.0~2586 X-Git-Url: http://git.cyclocoop.org/%24dirpuce/puce%24spip_lang_rtl.gif?a=commitdiff_plain;h=1c816f483f7757d6fd5989ef4d1d0ec0fcbc1b00;p=lhc%2Fweb%2Fwiklou.git Follow-up 2a04f2d: don't pass [''] as tag filter when tagfilter='' Change-Id: I472ff9524840c01131995a884283ca426e133879 --- 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,