diff --git a/src/elogd.c b/src/elogd.c index 4a590dbc..c49f7f8b 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -24762,14 +24762,18 @@ void show_logbook_node(LBLIST plb, LBLIST pparent, int level, int btop) loc("This logbook requires authentication"), loc("This logbook requires authentication")); rsprintf("
\n"); - str[0] = 0; - getcfg(lb_list[index].name, "Comment", str, sizeof(str)); - rsprintf(""); - if (is_html(str)) - rsputs(str); - else - rsputs3(str); - rsprintf("\n"); + + if (!getcfg(plb->name, "Hide Comments", str, sizeof(str)) || atoi(str) == 0) { + str[0] = 0; + getcfg(lb_list[index].name, "Comment", str, sizeof(str)); + rsprintf(""); + if (is_html(str)) + rsputs(str); + else + rsputs3(str); + rsprintf("\n"); + } + rsprintf(""); rsprintf("%d", *lb_list[index].n_el_index); rsprintf("\n");