From: ivan Date: Sun, 22 May 2005 23:38:23 +0000 (+0000) Subject: fix quick crypt_password bug when its passwd an empty param X-Git-Tag: BEFORE_FINAL_MASONIZE~507 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=d6201f16363d98531f37f4d7bae5ed86c0614552;ds=sidebyside fix quick crypt_password bug when its passwd an empty param --- diff --git a/FS/FS/svc_acct.pm b/FS/FS/svc_acct.pm index 6e4213d02..a0451938a 100644 --- a/FS/FS/svc_acct.pm +++ b/FS/FS/svc_acct.pm @@ -1327,7 +1327,7 @@ sub crypt_password { { $self->_password; } else { - my $encryption = scalar(@_) ? shift : 'crypt'; + my $encryption = ( scalar(@_) && $_[0] ) ? shift : 'crypt'; if ( $encryption eq 'crypt' ) { crypt( $self->_password,