From 7f44364870c14b27112d9f139862c8b341a118ec Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 4 Apr 2013 16:42:37 +0400 Subject: [PATCH] search: allow searching by note text --- include/functions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/functions.php b/include/functions.php index 9c64fad9..82c53fc3 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]) { -- 2.39.5