Explorar o código

[Filter] fixed choice filter when the selected choice is '0'

r1pp3rj4ck %!s(int64=13) %!d(string=hai) anos
pai
achega
b8694881a1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Filter/ChoiceFilter.php

+ 1 - 1
Filter/ChoiceFilter.php

@@ -46,7 +46,7 @@ class ChoiceFilter extends Filter
 
         } else {
 
-            if (empty($data['value']) || $data['value'] == 'all') {
+            if ($data['value'] === '' || $data['value'] === null || $data['value'] === false || $data['value'] == 'all') {
                 return;
             }