]> mj.ucw.cz Git - pciids.git/blobdiff - PciIds/Html/Help.pm
Help index
[pciids.git] / PciIds / Html / Help.pm
index 8c65bad4ba759f86d2a0cf089ed11534bbdff345..3f869c33c459efd2eaf7e2cd5bf67660bed86ff4 100644 (file)
@@ -18,7 +18,7 @@ sub getHelp( $$ ) {
        chomp $head;
        genHtmlHead( $req, $head, undef );
        my $addr = PciIds::Address::new( $req->uri() );
-       print "<h1>$head (".$addr->pretty().")</h1>\n";
+       print "<h1>$head".( defined $addr ? "(".$addr->pretty().")" : "" )."</h1>\n";
        genMenu( $req, $addr, $args, $auth, undef );
        genPath( $req, $addr, 1 );
        my $url = setAddrPrefix( $req->uri(), 'read' ).buildExcept( 'help', $args ).'?help=';