Skip to content

Commit

Permalink
check that there is an open311 endpoint configured before using open311
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Oct 21, 2011
1 parent d5b4a0e commit 2d759ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/send-reports
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ while (my $row = $unsent->next) {
$h{category} = 'Customer Services' if $h{category} eq 'Other';
} elsif ($areas_info->{$council}->{type} eq 'LBO') { # London
$send_web = 'london';
} elsif ( my $endpoint = FixMyStreet::App->model("DB::Open311conf")->find( { area_id => $council } ) ) {
} elsif ( my $endpoint = FixMyStreet::App->model("DB::Open311conf")->search( { area_id => $council, endpoint => { '!=', '' } } )->first ) {
push @open311_councils, $endpoint;
$send_web = 'open311';
} else {
Expand Down

0 comments on commit 2d759ea

Please sign in to comment.