diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-06-18 00:22:04 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-06-23 09:41:30 +0200 |
commit | 2c00dddf01e4c94e856d7c9e9e2e85b2de8dceec (patch) | |
tree | b9b60f606a4de91325e4597734767bf89c46d122 | |
parent | 1bdbc39f021c2505865cebe828310c549f586826 (diff) | |
download | wallabag-2c00dddf01e4c94e856d7c9e9e2e85b2de8dceec.tar.gz wallabag-2c00dddf01e4c94e856d7c9e9e2e85b2de8dceec.tar.zst wallabag-2c00dddf01e4c94e856d7c9e9e2e85b2de8dceec.zip |
fixup! Handle only upper or only lower reading filter
-rw-r--r-- | src/Wallabag/CoreBundle/Form/Type/EntryFilterType.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Form/Type/EntryFilterType.php b/src/Wallabag/CoreBundle/Form/Type/EntryFilterType.php index 9d63a8a9..3c597b5d 100644 --- a/src/Wallabag/CoreBundle/Form/Type/EntryFilterType.php +++ b/src/Wallabag/CoreBundle/Form/Type/EntryFilterType.php | |||
@@ -45,10 +45,10 @@ class EntryFilterType extends AbstractType | |||
45 | if (null === $lower && null === $upper) { | 45 | if (null === $lower && null === $upper) { |
46 | // no value? no filter | 46 | // no value? no filter |
47 | return; | 47 | return; |
48 | } else if (null === $lower && null !== $upper) { | 48 | } elseif (null === $lower && null !== $upper) { |
49 | // only lower value is defined: query all entries with reading LOWER THAN this value | 49 | // only lower value is defined: query all entries with reading LOWER THAN this value |
50 | $expression = $filterQuery->getExpr()->lte($field, $max); | 50 | $expression = $filterQuery->getExpr()->lte($field, $max); |
51 | } else if (null !== $lower && null === $upper) { | 51 | } elseif (null !== $lower && null === $upper) { |
52 | // only upper value is defined: query all entries with reading GREATER THAN this value | 52 | // only upper value is defined: query all entries with reading GREATER THAN this value |
53 | $expression = $filterQuery->getExpr()->gte($field, $min); | 53 | $expression = $filterQuery->getExpr()->gte($field, $min); |
54 | } else { | 54 | } else { |