]> dxcluster.org Git - spider.git/commitdiff
make sure that state and city are defined
authorminima <minima>
Fri, 25 Jun 2004 08:07:43 +0000 (08:07 +0000)
committerminima <minima>
Fri, 25 Jun 2004 08:07:43 +0000 (08:07 +0000)
perl/Prefix.pm

index bc8a0edf92ea3f411b6e2f242fe6eef824a228ad..48206cea6b4cce0a861b4dcc775b3e5789bdefa8 100644 (file)
@@ -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,'','');         
 }