]> git.wh0rd.org Git - tt-rss.git/commitdiff
search: allow searching by note text
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 4 Apr 2013 12:42:37 +0000 (16:42 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 4 Apr 2013 12:42:37 +0000 (16:42 +0400)
include/functions.php

index 9c64fad9fac04e5bf3343dec8e28bf3529f18151..82c53fc31a46ef024f073567f67ab99989606010 100644 (file)
 
                                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]) {