summaryrefslogtreecommitdiffstats
path: root/save-html.c
diff options
context:
space:
mode:
Diffstat (limited to 'save-html.c')
-rw-r--r--save-html.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/save-html.c b/save-html.c
index b517b199e..2befb418e 100644
--- a/save-html.c
+++ b/save-html.c
@@ -290,7 +290,8 @@ 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);
- save_photos(b, photos_dir, dive);
+ if (photos_dir)
+ save_photos(b, photos_dir, dive);
write_divecomputers(b, dive);
}
put_HTML_notes(b, dive, "\"notes\":\"", "\"");