foiled by autovivification!
authorivan <ivan>
Sat, 26 Aug 2006 02:14:14 +0000 (02:14 +0000)
committerivan <ivan>
Sat, 26 Aug 2006 02:14:14 +0000 (02:14 +0000)
FS/FS/Record.pm

index 713b967..94efc36 100644 (file)
@@ -388,8 +388,6 @@ sub qsearch {
   my %result;
   tie %result, "Tie::IxHash";
   my @stuff = @{ $sth->fetchall_arrayref( {} ) };
-  #if ( $pkey ) {
-  #if ( $pkey && $stuff[0]->{$pkey} ) {
   if ( $pkey && scalar(@stuff) && $stuff[0]->{$pkey} ) {
     %result = map { $_->{$pkey}, $_ } @stuff;
   } else {