X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2FRecord.pm;h=fd035249be39bf9c351067093a28a9030156aafd;hp=35240d4525cb27ca1bb417aeefec71e81f8bd1a3;hb=4d10679f7b649d9343f74503b14d17fc2831c40f;hpb=9da190548d79840cbf04c1e2b65dff386ceb2963 diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index 35240d452..fd035249b 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -506,7 +506,7 @@ sub qsearch { # Check for encrypted fields and decrypt them. ## only in the local copy, not the cached object if ( $conf_encryption - && eval 'defined(@FS::'. $table . '::encrypted_fields)' ) { + && eval '@FS::'. $table . '::encrypted_fields' ) { foreach my $record (@return) { foreach my $field (eval '@FS::'. $table . '::encrypted_fields') { next if $field eq 'payinfo' @@ -715,7 +715,7 @@ sub _from_hashref { # Check for encrypted fields and decrypt them. ## only in the local copy, not the cached object if ( $conf_encryption - && eval 'defined(@FS::'. $table . '::encrypted_fields)' ) { + && eval '@FS::'. $table . '::encrypted_fields' ) { foreach my $record (@return) { foreach my $field (eval '@FS::'. $table . '::encrypted_fields') { next if $field eq 'payinfo'