From d6a9e139dc53eee6a5afdbad7f66829e8c78b0d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Sun, 24 Apr 2016 20:46:25 +0200 Subject: Fix tests --- src/Wallabag/CoreBundle/Form/Type/EntryFilterType.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Wallabag/CoreBundle/Form') 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 'apply_filter' => function (QueryInterface $filterQuery, $field, $values) { $value = $values['value']; + if (null === $value['left_number'][0] || null === $value['right_number'][0]) { + return; + } + $min = (int) ($value['left_number'][0] * $this->user->getConfig()->getReadingSpeed()); $max = (int) ($value['right_number'][0] * $this->user->getConfig()->getReadingSpeed()); -- cgit v1.2.3