From: ivan Date: Sat, 26 Aug 2006 02:14:14 +0000 (+0000) Subject: foiled by autovivification! X-Git-Tag: TRIXBOX_2_6~1012 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=9d864158235a31e9a7bd179b8ec3c597f0f27949 foiled by autovivification! --- diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index 713b96767..94efc366d 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -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 {