summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-03-15 12:15:59 +0000
committerCarl Hetherington <cth@carlh.net>2019-03-15 12:15:59 +0000
commitdc864b775198d3378bd77031ad4750bf49e93b6b (patch)
tree6592701fe3a2b53755e9052830694593c3fd881c /src/lib
parentaedd7757b17e3bffbd67b11b48d4b0ce88d57c74 (diff)
Don't try to send emails to cinemas with no addresses (#1489).
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/cinema_kdms.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/cinema_kdms.cc b/src/lib/cinema_kdms.cc
index f5d9aef41..2e1d03b40 100644
--- a/src/lib/cinema_kdms.cc
+++ b/src/lib/cinema_kdms.cc
@@ -206,6 +206,10 @@ CinemaKDMs::email (
BOOST_FOREACH (CinemaKDMs const & i, cinema_kdms) {
+ if (i.cinema->emails.empty()) {
+ continue;
+ }
+
name_values['c'] = i.cinema->name;
boost::filesystem::path zip_file = boost::filesystem::temp_directory_path() / boost::filesystem::unique_path();