summaryrefslogtreecommitdiffstats
path: root/save-html.c
diff options
context:
space:
mode:
Diffstat (limited to 'save-html.c')
-rw-r--r--save-html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/save-html.c b/save-html.c
index f9f1cf0d1..d15ac962f 100644
--- a/save-html.c
+++ b/save-html.c
@@ -329,7 +329,7 @@ void write_one_dive(struct membuffer *b, struct dive *dive, const char *photos_d
put_HTML_samples(b, dive);
put_HTML_bookmarks(b, dive);
write_dive_status(b, dive);
- if (photos_dir)
+ if (photos_dir && strcmp(photos_dir, ""))
save_photos(b, photos_dir, dive);
write_divecomputers(b, dive);
}