diff options
| author | 2014-09-21 16:11:58 +0200 | |
|---|---|---|
| committer | 2014-10-14 20:33:46 +0200 | |
| commit | 4cdb80c4cd3836fdbacf50f62e9c76f0efca244b (patch) | |
| tree | 13b0dfba240d6ce58b7dc68d64f29153e5116dac /save-html.c | |
| parent | 64d1ccc5502e79917bc17ed55ef1a783b4163139 (diff) | |
| download | subsurface-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.c | 3 |
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\":\"", "\""); |