aboutsummaryrefslogtreecommitdiff
path: root/ui-shared.c
diff options
from:
to:
context:
space:
mode:
Diffstat (limited to 'ui-shared.c')
-rw-r--r--ui-shared.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui-shared.c b/ui-shared.c
index 9f7625c..a6a828d 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -1042,7 +1042,7 @@ static void print_header(void)
cgit_index_link("index", NULL, NULL, NULL, NULL, 0, 1);
html(" : ");
cgit_summary_link(ctx.repo->name, NULL, NULL, NULL);
- if (ctx.env.authenticated) {
+ if (ctx.env.authenticated && cgit_have_repository()) {
html("</td><td class='form'>");
html("<form method='get'>\n");
cgit_add_hidden_formfields(0, 1, ctx.qry.page);