X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXCommandmode.pm;h=32830c28528dd0923bc2b71b0f72e19b693c630c;hb=c62d1dbdc3238711628d49608946eefedda2362e;hp=94c836344e54df81cdf098f4e3719a9940c0ee75;hpb=5a6b7405140f17a0bc6cf5e7bb3d85a02f1eae88;p=spider.git diff --git a/perl/DXCommandmode.pm b/perl/DXCommandmode.pm index 94c83634..32830c28 100644 --- a/perl/DXCommandmode.pm +++ b/perl/DXCommandmode.pm @@ -4,7 +4,7 @@ # # Copyright (c) 1998 Dirk Koopman G1TLH # -# $Id$ +# # package DXCommandmode; @@ -920,9 +920,9 @@ sub format_dx_spot my $t = ztime($_[2]); my $loc = ''; my $clth = $self->{consort} eq 'local' ? 29 : 30; - my $comment = substr $_[3], 0, $clth; + my $comment = substr (($_[3] || ''), 0, $clth); $comment .= ' ' x ($clth - length($comment)); - if ($self->{user}->wantgrid) { + if ($self->{user}->wantgrid) { my $ref = DXUser->get_current($_[4]); if ($ref) { $loc = $ref->qra || '';