Changeset 7 in mp3-find for trunk/lib/MP3
- Timestamp:
- 02/01/06 03:05:59 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/MP3/Find/Base.pm
r2 r7 42 42 43 43 foreach (keys %QUERY) { 44 # so we don't have spurious warnings when trying to match against undef 45 delete $QUERY{$_} unless defined $QUERY{$_}; 46 # package everything uniformly, so subclasses don't need to unpack it 47 $QUERY{$_} = [ $QUERY{$_} ] unless ref $QUERY{$_} eq 'ARRAY'; 44 if (defined $QUERY{$_}) { 45 # package everything uniformly, so subclasses don't need to unpack it 46 $QUERY{$_} = [ $QUERY{$_} ] unless ref $QUERY{$_} eq 'ARRAY'; 47 } else { 48 # so we don't have spurious warnings when trying to match against undef 49 delete $QUERY{$_}; 50 } 48 51 } 49 52
Note: See TracChangeset
for help on using the changeset viewer.