Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2021-02-03 16:44:28 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2021-02-03 16:44:28 +0300
commit8c69b0844ab007288927938c8f4c6d26b8706a3d (patch)
tree7a54dd234cdbc2e4ec1c0f7a0d812ba700a7d030 /lib/Service
parent10b43265c3b1c1157ed13f7b00199a506530b05e (diff)
Fix filter expression
!a OR (a OR b) is always true ;) Now it is also actually doing what the comments say it does. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/Service')
-rw-r--r--lib/Service/Search/FilterStringParser.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Service/Search/FilterStringParser.php b/lib/Service/Search/FilterStringParser.php
index 54698a374..59489ae57 100644
--- a/lib/Service/Search/FilterStringParser.php
+++ b/lib/Service/Search/FilterStringParser.php
@@ -88,7 +88,7 @@ class FilterStringParser {
Flag::is(Flag::FLAGGED),
FlagExpression::or(
Flag::not(Flag::IMPORTANT),
- FlagExpression::or(
+ FlagExpression::and(
Flag::is(Flag::IMPORTANT),
Flag::is(Flag::SEEN)
)