1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-14 01:25:56 +00:00

fix inverse rule to only mean negative regexp matching except for whole rule (refs #631)

This commit is contained in:
Andrew Dolgov
2013-03-25 20:08:34 +04:00
parent bcd4d24086
commit ec1f8a3d8a
2 changed files with 7 additions and 9 deletions

View File

@@ -3905,6 +3905,8 @@
break;
}
if (isset($rule['inverse'])) $qpart = "NOT ($qpart)";
if (isset($rule["feed_id"]) && $rule["feed_id"] > 0) {
$qpart .= " AND feed_id = " . db_escape_string($link, $rule["feed_id"]);
}
@@ -3925,8 +3927,6 @@
$qpart .= " AND $cat_qpart";
}
if (isset($rule['inverse'])) $qpart = "NOT ($qpart)";
array_push($query, "($qpart)");
}