diff options
author | Lorenzo Cameroni <[email protected]> | 2015-03-05 21:21:02 +0100 |
---|---|---|
committer | Lorenzo Cameroni <[email protected]> | 2015-03-05 21:21:02 +0100 |
commit | 21fcaf979fffd9a8cd11c8a5f6e63b1e64c783d1 (patch) | |
tree | bafa2ca114ff42bfdd5861dc813ccc089c5e59a8 | |
parent | 65718c79904749a033a54d676bf83781e9904f2a (diff) | |
parent | aac7067316be23362d50bcd8bf8c98f7baa8e5ce (diff) |
Merge remote-tracking branch 'origin/master'
-rw-r--r-- | include/functions2.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/functions2.php b/include/functions2.php index 6d02d01e0..278c0f3ee 100644 --- a/include/functions2.php +++ b/include/functions2.php @@ -360,6 +360,19 @@ if (!$not) array_push($search_words, $k); } break; + case "unread": + if ($commandpair[1]) { + if ($commandpair[1] == "true") + array_push($query_keywords, "($not (unread = true))"); + else + array_push($query_keywords, "($not (unread = false))"); + + } else { + array_push($query_keywords, "(UPPER(ttrss_entries.title) $not LIKE UPPER('%$k%') + OR UPPER(ttrss_entries.content) $not LIKE UPPER('%$k%'))"); + if (!$not) array_push($search_words, $k); + } + break; default: if (strpos($k, "@") === 0) { |