Bug 8895 follow-up fix for Jonathan's QA comment
useless use of defined($data->{value}) because it's set to "" 2 lines earlier
This commit is contained in:
parent
56cf444927
commit
205993cf65
1 changed files with 1 additions and 1 deletions
|
@ -422,7 +422,7 @@ sub StringSearch {
|
|||
while ( my $data = $sth->fetchrow_hashref ) {
|
||||
unless (defined $data->{value}) { $data->{value} = "";}
|
||||
$data->{shortvalue} = $data->{value};
|
||||
$data->{shortvalue} = substr( $data->{value}, 0, 60 ) . "..." if defined( $data->{value} ) and length( $data->{value} ) > 60;
|
||||
$data->{shortvalue} = substr( $data->{value}, 0, 60 ) . "..." if length( $data->{value} ) > 60;
|
||||
push( @results, $data );
|
||||
$cnt++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue