aboutsummaryrefslogtreecommitdiff
path: root/dpi/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'dpi/file.c')
-rw-r--r--dpi/file.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/dpi/file.c b/dpi/file.c
index 1e70e9ef..64f06bf5 100644
--- a/dpi/file.c
+++ b/dpi/file.c
@@ -478,12 +478,10 @@ static void File_send_dir(ClientInfo *client)
File_info2html(client, dList_nth_data(Ddir->flist,n), n+1);
}
- if (dList_length(Ddir->flist)) {
- if (client->old_style) {
- a_Dpip_dsh_write_str(client->sh, 0, "</pre>\n");
- } else {
- a_Dpip_dsh_write_str(client->sh, 0, "</table>\n");
- }
+ if (client->old_style) {
+ a_Dpip_dsh_write_str(client->sh, 0, "</pre>\n");
+ } else if (dList_length(Ddir->flist)) {
+ a_Dpip_dsh_write_str(client->sh, 0, "</table>\n");
}
a_Dpip_dsh_write_str(client->sh, 1, "</BODY></HTML>\n");