aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-08-23 14:05:47 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-08-23 14:05:47 +0100
commit6f7efae58ef30ffbaddd42b4ac7f65380f6fe68a (patch)
tree73a6f970906582029e17ac34745bbbcc7d118c42 /perllib
parent5f15e9ec77ecfc7d21d150b3baf18c853bae4ed0 (diff)
parent22dd06a50f24df15f782e0e4a327b0d0685e793d (diff)
Merge remote-tracking branch 'origin/empty-alert-urls'
Diffstat (limited to 'perllib')
-rw-r--r--perllib/FixMyStreet/Script/Alerts.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Script/Alerts.pm b/perllib/FixMyStreet/Script/Alerts.pm
index aefe13318..c001cc311 100644
--- a/perllib/FixMyStreet/Script/Alerts.pm
+++ b/perllib/FixMyStreet/Script/Alerts.pm
@@ -102,7 +102,7 @@ sub send() {
my $url = $cobrand->base_url_for_report($row);
# this is currently only for new_updates
- if ($row->{item_text}) {
+ if (defined($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