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:
@@ -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)");
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user