filters: allow matching on tags if there are no tags
This commit is contained in:
@@ -1526,6 +1526,8 @@ class RSSUtils {
|
|||||||
$match = @preg_match("/$reg_exp/iu", $author);
|
$match = @preg_match("/$reg_exp/iu", $author);
|
||||||
break;
|
break;
|
||||||
case "tag":
|
case "tag":
|
||||||
|
array_push($tags, ''); // allow matching if there are no tags
|
||||||
|
|
||||||
foreach ($tags as $tag) {
|
foreach ($tags as $tag) {
|
||||||
if (@preg_match("/$reg_exp/iu", $tag)) {
|
if (@preg_match("/$reg_exp/iu", $tag)) {
|
||||||
$match = true;
|
$match = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user