From: Andrew Dolgov Date: Thu, 4 Apr 2013 12:42:37 +0000 (+0400) Subject: search: allow searching by note text X-Git-Tag: 1.7.9~78 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=7f44364870c14b27112d9f139862c8b341a118ec;p=tt-rss.git search: allow searching by note text --- 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]) {