aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Script
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2017-10-02 14:58:01 +0100
committerStruan Donald <struan@exo.org.uk>2017-10-05 14:41:37 +0100
commit20e563c0efb98747f765e69fd97dadef11b18a95 (patch)
tree3435b24132546ae5af3ba31abb022174bf67459c /perllib/FixMyStreet/Script
parent4d5828bdc5076dcc08d73a0760c25fd434ce3dff (diff)
do not send blank problem update alerts
Diffstat (limited to 'perllib/FixMyStreet/Script')
-rw-r--r--perllib/FixMyStreet/Script/Alerts.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Script/Alerts.pm b/perllib/FixMyStreet/Script/Alerts.pm
index 86f11c7b5..aefdf82d5 100644
--- a/perllib/FixMyStreet/Script/Alerts.pm
+++ b/perllib/FixMyStreet/Script/Alerts.pm
@@ -103,6 +103,7 @@ sub send() {
my $url = $cobrand->base_url_for_report($row);
# this is currently only for new_updates
if (defined($row->{item_text})) {
+ next unless $row->{item_text};
if ( $cobrand->moniker ne 'zurich' && $row->{alert_user_id} == $row->{user_id} ) {
# This is an alert to the same user who made the report - make this a login link
# Don't bother with Zurich which has no accounts