fix 881f8805bd behaving improperly

This commit is contained in:
Andrew Dolgov 2023-04-13 06:20:04 +03:00
parent c314bd8742
commit 1e90feef0e
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
1 changed files with 2 additions and 1 deletions

View File

@ -1542,6 +1542,7 @@ class RSSUtils {
$match = @preg_match("/$reg_exp/iu", $author); $match = @preg_match("/$reg_exp/iu", $author);
break; break;
case "tag": case "tag":
if (count($tags) == 0)
array_push($tags, ''); // allow matching if there are no tags array_push($tags, ''); // allow matching if there are no tags
foreach ($tags as $tag) { foreach ($tags as $tag) {