summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-04 16:42:37 +0400
committerAndrew Dolgov <[email protected]>2013-04-04 16:42:37 +0400
commit7f44364870c14b27112d9f139862c8b341a118ec (patch)
tree450f3958f830d88730f9dfe4d4f76f291cc34c11 /include
parent9ce7a5546c6d9cca8aa8be524d43c735e2bd7182 (diff)
search: allow searching by note text
Diffstat (limited to 'include')
-rw-r--r--include/functions.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php
index 9c64fad9f..82c53fc31 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -2136,8 +2136,11 @@
if ($commandpair[1] == "true")
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 = ''))");
+ else
+ array_push($query_keywords, "($not (note LIKE '%".
+ db_escape_string($link, $commandpair[1])."%'))");
} else if ($commandpair[0] == "star" && $commandpair[1]) {