Subject: | maypole model cdbi search generates warnings |
Hi Simon,
There's a line in M-M-CDBI->search() that looks like this:
grep { length ($params{$_}) and $fields{$_} } keys %params;
It generates warnings:
Use of uninitialized value in length at
/usr/local/share/perl/5.6.1/Maypole/Model/CDBI.pm
when some search keys are empty. It should look like this:
grep { defined $params{$_} and length ($params{$_}) and $fields{$_} }
keys %params;
Cheers, Dave