summaryrefslogtreecommitdiff
path: root/FS/FS/svc_domain.pm
diff options
context:
space:
mode:
authorivan <ivan>2007-09-12 03:39:15 +0000
committerivan <ivan>2007-09-12 03:39:15 +0000
commit0f96c028d39c22135e541fe8307441b100ce9a84 (patch)
treeb8e0c49cb3731c8d977d2c40682f3ff7ab62d68a /FS/FS/svc_domain.pm
parent6f7d4483b99c758e112cbe5a3a6a34617f80fce7 (diff)
fix "Useless use of a variable in void context at /usr/local/share/perl/5.8.8/FS/svc_domain.pm line 367." that might have possible set an incorrest svc_domain.suffix
Diffstat (limited to 'FS/FS/svc_domain.pm')
-rw-r--r--FS/FS/svc_domain.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/svc_domain.pm b/FS/FS/svc_domain.pm
index 7ae9961..37128a0 100644
--- a/FS/FS/svc_domain.pm
+++ b/FS/FS/svc_domain.pm
@@ -364,7 +364,7 @@ sub check {
# need to match a list of suffixes - no guarantee they're top-level..
# http://wiki.mozilla.org/TLD_List
# but this will have to do for now...
- $recref->{suffix} || $2;
+ $recref->{suffix} ||= $2;
} else {
return "Illegal domain ". $recref->{domain}.
" (or unknown registry - try \$whois_hack)";