X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=web%2Fhtdocs%2Fdetails%2Ffound.mc;fp=web%2Fhtdocs%2Fdetails%2Ffound.mc;h=d4b6d66624d17abfd9a0caf7df8ebefa01d46f36;hp=dab6199e458926ab89c9191776ba088811b82b71;hb=34fd524e6436cd1bfa7e9b8493227eadbd68cb28;hpb=cf90c7514eed0ca6f2867f2fe197aa50743890d6 diff --git a/web/htdocs/details/found.mc b/web/htdocs/details/found.mc index dab6199..d4b6d66 100644 --- a/web/htdocs/details/found.mc +++ b/web/htdocs/details/found.mc @@ -1,4 +1,4 @@ -%# $Id: found.mc,v 1.26 2007-02-20 19:20:23 mike Exp $ +%# $Id: found.mc,v 1.27 2007-02-22 11:49:46 mike Exp $ <%once> sub print_navlink { my($params, $cond, $caption, $skip) = @_; @@ -126,7 +126,7 @@ print_navlink(\%params, $last < $n, "Next", $skip+$count); % foreach my $i ($first .. $last) { <%perl> my $xc = irspy_xpath_context($rs->record($i-1)); -my $title = $xc->find("e:databaseInfo/e:title"); +my $title = $xc->find("e:databaseInfo/e:title") || "[UNTITLED]"; my $reliability = calc_reliability($xc); my $host = $xc->find("e:serverInfo/e:host"); my $port = $xc->find("e:serverInfo/e:port"); @@ -139,7 +139,7 @@ push @ids, $id; <% $i %> <% xml_encode($title, "[untitled]") %> + %>"><% xml_encode($title) %> <% xml_encode($reliability, "", { nbsp => 1 }) %> <% xml_encode($host, "") %> <% xml_encode($port, "") %>