aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-package-details.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'mod/mod-package-details.cxx')
-rw-r--r--mod/mod-package-details.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/mod/mod-package-details.cxx b/mod/mod-package-details.cxx
index c56d91a..a348d95 100644
--- a/mod/mod-package-details.cxx
+++ b/mod/mod-package-details.cxx
@@ -186,8 +186,10 @@ handle (request& rq, response& rs)
s << TABLE(CLASS="proplist", ID="package")
<< TBODY
- << TR_LICENSE (licenses)
- << TR_URL (pkg->url);
+ << TR_LICENSE (licenses);
+
+ if (pkg->url)
+ s << TR_URL (*pkg->url);
if (pkg->doc_url)
s << TR_URL (*pkg->doc_url, "doc-url");
@@ -195,8 +197,10 @@ handle (request& rq, response& rs)
if (pkg->src_url)
s << TR_URL (*pkg->src_url, "src-url");
- s << TR_EMAIL (pkg->email)
- << TR_TAGS (pkg->tags, root)
+ if (pkg->email)
+ s << TR_EMAIL (*pkg->email);
+
+ s << TR_TAGS (pkg->tags, root)
<< ~TBODY
<< ~TABLE;
}