Changeset 53

Show
Ignore:
Timestamp:
03/19/07 23:44:10 (3 years ago)
Author:
eevee
Message:

Fixed a bug with the new breeding arrangement that broke the Pokemon search.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • veekun/trunk/lib/Vee/Controller/Dex/Search.pm

    r50 r53  
    138138            } 
    139139        } 
    140         if ($p->{breed}) { 
    141             my @breeds = uniq grep { $_ } Vee::Utils::array($p->{breed}); 
     140        my @breeds = uniq grep { $_ } Vee::Utils::array($p->{breed}); 
     141        if (@breeds) { 
    142142            $joins{breeds} = 1; 
    143143            $criteria{'breeds.breed'} = \@breeds;