echeck options to hide routing number and add account owner name, RT#13885
[freeside.git] / FS / FS / payinfo_Mixin.pm
index 84264c9..d03391f 100644 (file)
@@ -165,7 +165,8 @@ sub mask_payinfo {
       # Checks (Show last 2 @ bank)
       my( $account, $aba ) = split('@', $payinfo );
       return 'x'x(length($account)-2).
-             substr($account,(length($account)-2))."@".$aba;
+             substr($account,(length($account)-2)).
+             ( length($aba) ? "@".$aba : '');
 
     } else { # Tie up loose ends
       return $payinfo;