Follow-up 2a04f2d: don't pass [''] as tag filter when tagfilter=''
authorRoan Kattouw <roan.kattouw@gmail.com>
Wed, 26 Jul 2017 00:45:00 +0000 (17:45 -0700)
committerRoan Kattouw <roan.kattouw@gmail.com>
Wed, 26 Jul 2017 00:45:00 +0000 (17:45 -0700)
Change-Id: I472ff9524840c01131995a884283ca426e133879

includes/specials/SpecialRecentchanges.php
includes/specials/SpecialRecentchangeslinked.php

index 852bfa4..1248007 100644 (file)
@@ -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,
index 80ec2b1..fee336e 100644 (file)
@@ -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,