Index: /Users/mh/Documents/workspace/Teststoff/Slim/Web/Pages/Search.pm =================================================================== --- /Users/mh/Documents/workspace/Teststoff/Slim/Web/Pages/Search.pm (revision 14500) +++ /Users/mh/Documents/workspace/Teststoff/Slim/Web/Pages/Search.pm (working copy) @@ -156,6 +156,12 @@ # This will be handed to SQL::Abstract $query{$newKey} = { $op => $params->{$key} }; + # don't include null/0 value years in search for earlier years + + if ($newKey eq 'year' && $op eq '<') { + $query{$newKey}->{'>'} = '0'; + } + delete $params->{$key}; next;