X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FRecord.pm;h=fd035249be39bf9c351067093a28a9030156aafd;hb=b5d22578f60ba105934c92c031799671bf6c0f29;hp=35240d4525cb27ca1bb417aeefec71e81f8bd1a3;hpb=1d41419b8faaf6ffb0fc51ba4fbea15bd452e30e;p=freeside.git 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'