diff options
author | Struan Donald <struan@exo.org.uk> | 2012-10-03 14:30:44 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-10-03 14:30:44 +0100 |
commit | d41c0531baf3f76528668323c7ddb20735e598bb (patch) | |
tree | e85d57196a05360fe9e700d0e405522020f19cd4 | |
parent | ce56254b7e6ac383032918f06f3e98e7e6ed661b (diff) |
stop warning if nothing in TESTING_COUNCILS
-rw-r--r-- | perllib/FixMyStreet/DB/ResultSet/Problem.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/DB/ResultSet/Problem.pm b/perllib/FixMyStreet/DB/ResultSet/Problem.pm index bac367b87..4036c4b05 100644 --- a/perllib/FixMyStreet/DB/ResultSet/Problem.pm +++ b/perllib/FixMyStreet/DB/ResultSet/Problem.pm @@ -361,7 +361,7 @@ sub send_reports { if (mySociety::Config::get('STAGING_SITE')) { # on a staging server send emails to ourselves rather than the councils - my @testing_councils = split( '\|', mySociety::Config::get('TESTING_COUNCILS') ); + my @testing_councils = split( '\|', mySociety::Config::get('TESTING_COUNCILS') || '' ); unless ( grep { $row->council eq $_ } @testing_councils ) { %reporters = map { $_ => $reporters{$_} } grep { /FixMyStreet::SendReport::(Email|NI)/ } keys %reporters; unless (%reporters) { |