aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/Result/Alert.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-05-16 14:03:09 +0100
committerStruan Donald <struan@exo.org.uk>2011-05-16 14:03:09 +0100
commit716245446164f70fb1ab324f292e8fd21810f6b2 (patch)
treec90d1c77988be26a28b93ac3bcc00b9b5fcdde8e /perllib/FixMyStreet/DB/Result/Alert.pm
parent218ea6d7547cf3b9c8bf1196f4849a1cf8d7b955 (diff)
remove uninitialised value warning if confirming new report
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Alert.pm')
-rw-r--r--perllib/FixMyStreet/DB/Result/Alert.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Alert.pm b/perllib/FixMyStreet/DB/Result/Alert.pm
index 2d5867050..2bfbfa1a8 100644
--- a/perllib/FixMyStreet/DB/Result/Alert.pm
+++ b/perllib/FixMyStreet/DB/Result/Alert.pm
@@ -95,7 +95,7 @@ Sets the state of the alert to confirmed.
sub confirm {
my $self = shift;
- return if $self->confirmed == 1 and $self->whendisabled ne 'null';
+ return if $self->confirmed and $self->confirmed == 1 and $self->whendisabled ne 'null';
$self->confirmed(1);
$self->whendisabled(undef);