don't overwrite title with if it's not defined
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 10 Sep 2009 13:08:36 +0000 (13:08 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 10 Sep 2009 13:08:36 +0000 (13:08 +0000)
lib/PXElator/httpd.pm

index c01a1f4..0dec3a6 100644 (file)
@@ -259,7 +259,7 @@ warn "XXX pids = ", dump( $daemons::pids );
 
        } elsif ( $path =~ m!^/client(?:/$RE{net}{IPv4}{-keep})?! ) {
                my $ip = $1;
-               $title = $ip;
+               $title = $ip if $ip;
 
                if ( $param->{action} eq 'remove' ) {
                        client::remove( $param->{change_ip} );