diff options
author | Guilhem Moulin <guilhem.moulin@fripost.org> | 2013-01-26 23:59:24 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem.moulin@fripost.org> | 2013-01-26 23:59:24 +0100 |
commit | ae6b8a2905bfc7905030479e06f3490f2c901099 (patch) | |
tree | 0bf7637e7700016904c13948c6c4c144152eae4f /lib/Fripost/Schema/Util.pm | |
parent | 050f245fd22572f36de9339df800757018628449 (diff) |
Factorized the code to list localparts.
Diffstat (limited to 'lib/Fripost/Schema/Util.pm')
-rw-r--r-- | lib/Fripost/Schema/Util.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Fripost/Schema/Util.pm b/lib/Fripost/Schema/Util.pm index d5e122e..59d724f 100644 --- a/lib/Fripost/Schema/Util.pm +++ b/lib/Fripost/Schema/Util.pm @@ -154,7 +154,7 @@ sub ldap_explode_dn { } sub split_addr { - my $addr = shift; + my $addr = shift // return; my %options = @_; $addr =~ /^(.*)\@([^\@]+)$/s; |