From: minima Date: Fri, 25 Jun 2004 08:07:43 +0000 (+0000) Subject: make sure that state and city are defined X-Git-Tag: R_1_51B~33 X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=a9f28e80e3936421f830bba0eacffd3bb509a9cb;p=spider.git make sure that state and city are defined --- diff --git a/perl/Prefix.pm b/perl/Prefix.pm index bc8a0edf..48206cea 100644 --- a/perl/Prefix.pm +++ b/perl/Prefix.pm @@ -481,7 +481,7 @@ sub cty_data my @dxcc = extract($call); if (@dxcc) { - return ($dxcc[1]->dxcc, $dxcc[1]->itu, $dxcc[1]->cq, $dxcc[1]->state, $dxcc[1]->city); + return ($dxcc[1]->dxcc, $dxcc[1]->itu, $dxcc[1]->cq, ($dxcc[1]->state||''), ($dxcc[1]->city||'')); } return (666,0,0,'',''); }