summaryrefslogtreecommitdiff
path: root/FS/FS/Record.pm
diff options
context:
space:
mode:
authorivan <ivan>2008-08-03 00:27:50 +0000
committerivan <ivan>2008-08-03 00:27:50 +0000
commit44395102c7cc0a2b49d075ea8ec9573e499d4214 (patch)
tree0120fa8df578d25ec614f9f9b49642dfd5372bcc /FS/FS/Record.pm
parent784853b8a9d5ba5a7d91bcc58d64ce81303336f3 (diff)
attempt to eliminate 'Can't call method "exists" on an undefined value at /usr/local/share/perl/5.8.8/FS/Record.pm line 812.' error on upgrade
Diffstat (limited to 'FS/FS/Record.pm')
-rw-r--r--FS/FS/Record.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm
index 65bd827..8bd57eb 100644
--- a/FS/FS/Record.pm
+++ b/FS/FS/Record.pm
@@ -1306,7 +1306,7 @@ sub _h_statement {
# If we're encrypting then don't ever store the payinfo or CVV2 in the history....
# You can see if it changed by the paymask...
- if ($conf->exists('encryption') ) {
+ if ($conf && $conf->exists('encryption') ) {
@fields = grep $_ ne 'payinfo' && $_ ne 'cvv2', @fields;
}
my @values = map { _quote( $self->getfield($_), $self->table, $_) } @fields;