From: Mark Wells Date: Thu, 8 Dec 2016 00:56:47 +0000 (-0800) Subject: silence a warning when creating contacts X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=8b9017962e8f337554f9d15f513ede606f8725e2 silence a warning when creating contacts --- diff --git a/FS/FS/Password_Mixin.pm b/FS/FS/Password_Mixin.pm index 2e400ec9d..963fa542b 100644 --- a/FS/FS/Password_Mixin.pm +++ b/FS/FS/Password_Mixin.pm @@ -212,8 +212,9 @@ sub insert_password_history { } } else { - warn "unrecognized password encoding '$encoding'; treating as plain text" - unless $encoding eq 'plain'; + if ($encoding and $encoding ne 'plain') { + warn "unrecognized password encoding '$encoding'; treating as plain text"; + } $auth = $self->_blowfishcrypt( $password );