From 2589076e3bea2e9535c089d7ff816de70daa5af5 Mon Sep 17 00:00:00 2001 From: Amir Sarabadani Date: Tue, 16 Oct 2018 13:02:45 +0200 Subject: [PATCH] Avoid fatals when the filter tags is empty Bug: T194164 Change-Id: I418cbe2259e7c1622a58a4a310a3cd56873f16c3 --- includes/changetags/ChangeTags.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/changetags/ChangeTags.php b/includes/changetags/ChangeTags.php index 8dc63e506d..d9ca8d7b9a 100644 --- a/includes/changetags/ChangeTags.php +++ b/includes/changetags/ChangeTags.php @@ -836,7 +836,10 @@ class ChangeTags { break; }; } - $conds['ct_tag_id'] = $filterTagIds; + + if ( $filterTagIds !== [] ) { + $conds['ct_tag_id'] = $filterTagIds; + } } else { $conds['ct_tag'] = $filter_tag; } -- 2.20.1