summaryrefslogtreecommitdiffstats
path: root/save-html.c
diff options
context:
space:
mode:
authorGravatar Salvo 'LtWorf' Tomaselli <tiposchi@tiscali.it>2014-09-21 16:11:58 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-10-14 20:33:46 +0200
commit4cdb80c4cd3836fdbacf50f62e9c76f0efca244b (patch)
tree13b0dfba240d6ce58b7dc68d64f29153e5116dac /save-html.c
parent64d1ccc5502e79917bc17ed55ef1a783b4163139 (diff)
downloadsubsurface-4cdb80c4cd3836fdbacf50f62e9c76f0efca244b.tar.gz
Export to DiveShare
Adds the possibility of exporting dives to DiveShare. Signed-off-by: Salvo 'LtWorf' Tomaselli <tiposchi@tiscali.it> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
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\":\"", "\"");