Avoid fatals when the filter tags is empty

Bug: T194164
Change-Id: I418cbe2259e7c1622a58a4a310a3cd56873f16c3
This commit is contained in:
Amir Sarabadani 2018-10-16 13:02:45 +02:00
parent 31c35c9fb6
commit 2589076e3b

View file

@ -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;
}