diff options
-rw-r--r-- | FS/FS/Record.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index 94efc366d..114b1d6ab 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -712,7 +712,7 @@ sub insert { # Encrypt before the database my $conf = new FS::Conf; - if ($conf->exists('encryption') && defined(eval '@FS::'. $table . 'encrypted_fields')) { + if ($conf->exists('encryption') && defined(eval '@FS::'. $table . '::encrypted_fields')) { foreach my $field (eval '@FS::'. $table . '::encrypted_fields') { $self->{'saved'} = $self->getfield($field); $self->setfield($field, $self->enrypt($self->getfield($field))); |