aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-01-23 11:44:09 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-01-23 11:44:09 +0000
commit66a83a67b807a65e5ce99751a84f386bc3605695 (patch)
tree1abc1db8b15f67e596872c0eb276eca6470bf48a
parent86a9623a3c5b743b6c35fc494fef9373cbf0c4e8 (diff)
Not overdue if it's not yet been sent.
-rw-r--r--perllib/FixMyStreet/Cobrand/Zurich.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Zurich.pm b/perllib/FixMyStreet/Cobrand/Zurich.pm
index 774aad3fa..6ac04ce1e 100644
--- a/perllib/FixMyStreet/Cobrand/Zurich.pm
+++ b/perllib/FixMyStreet/Cobrand/Zurich.pm
@@ -91,6 +91,8 @@ sub overdue {
my ( $self, $problem ) = @_;
my $w = $problem->whensent;
+ return 0 unless $w;
+
if ( $problem->state eq 'unconfirmed' || $problem->state eq 'confirmed' ) {
# One working day
$w = add_days( $w, 1 );