X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/6e999e79e078ca87e22b3474d532b3d570453661..667fc3716d8e2e824df69cf0e4f446b72e5f76d8:/common.inc.plp
diff --git a/common.inc.plp b/common.inc.plp
index 6672bd5..5f7cb25 100644
--- a/common.inc.plp
+++ b/common.inc.plp
@@ -180,6 +180,7 @@ EOT
sub showlink {
my ($title, $href, $selected) = @_;
return sprintf(
+ !$href ? '%s' :
$selected ? '%s' : '%s',
EscapeHTML($title), EscapeHTML($href)
);