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
1 changed files with 4 additions and 1 deletions

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]) {