aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Form
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-04-24 20:46:25 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2016-04-24 20:46:25 +0200
commitd6a9e139dc53eee6a5afdbad7f66829e8c78b0d8 (patch)
tree942925063f1a5d08dfd187ce9369a65a86c313c9 /src/Wallabag/CoreBundle/Form
parentd8f8a5901086f243f9fa215d52baea6833e1cb55 (diff)
downloadwallabag-d6a9e139dc53eee6a5afdbad7f66829e8c78b0d8.tar.gz
wallabag-d6a9e139dc53eee6a5afdbad7f66829e8c78b0d8.tar.zst
wallabag-d6a9e139dc53eee6a5afdbad7f66829e8c78b0d8.zip
Fix tests
Diffstat (limited to 'src/Wallabag/CoreBundle/Form')
-rw-r--r--src/Wallabag/CoreBundle/Form/Type/EntryFilterType.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Form/Type/EntryFilterType.php b/src/Wallabag/CoreBundle/Form/Type/EntryFilterType.php
index 5c2216cf..cd4d3490 100644
--- a/src/Wallabag/CoreBundle/Form/Type/EntryFilterType.php
+++ b/src/Wallabag/CoreBundle/Form/Type/EntryFilterType.php
@@ -38,6 +38,10 @@ class EntryFilterType extends AbstractType
38 'apply_filter' => function (QueryInterface $filterQuery, $field, $values) { 38 'apply_filter' => function (QueryInterface $filterQuery, $field, $values) {
39 $value = $values['value']; 39 $value = $values['value'];
40 40
41 if (null === $value['left_number'][0] || null === $value['right_number'][0]) {
42 return;
43 }
44
41 $min = (int) ($value['left_number'][0] * $this->user->getConfig()->getReadingSpeed()); 45 $min = (int) ($value['left_number'][0] * $this->user->getConfig()->getReadingSpeed());
42 $max = (int) ($value['right_number'][0] * $this->user->getConfig()->getReadingSpeed()); 46 $max = (int) ($value['right_number'][0] * $this->user->getConfig()->getReadingSpeed());
43 47