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

search: allow searching by note text

This commit is contained in:
Andrew Dolgov
2013-04-04 16:42:37 +04:00
parent 9ce7a5546c
commit 7f44364870

View File

@@ -2136,8 +2136,11 @@
if ($commandpair[1] == "true") if ($commandpair[1] == "true")
array_push($query_keywords, "($not (note IS NOT NULL AND note != ''))"); array_push($query_keywords, "($not (note IS NOT NULL AND note != ''))");
else else if ($commandpair[1] == "false")
array_push($query_keywords, "($not (note IS NULL OR note = ''))"); array_push($query_keywords, "($not (note IS NULL OR note = ''))");
else
array_push($query_keywords, "($not (note LIKE '%".
db_escape_string($link, $commandpair[1])."%'))");
} else if ($commandpair[0] == "star" && $commandpair[1]) { } else if ($commandpair[0] == "star" && $commandpair[1]) {