diff options
author | Matthew Somerville <matthew@mysociety.org> | 2016-01-15 14:56:00 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2016-01-15 14:56:00 +0000 |
commit | 3d5e0210feacf96e21e1916ab0df84b83f5f05e2 (patch) | |
tree | c9f82ab699f4f4b589345a55a70880ebf5089c90 /perllib/FixMyStreet/Cobrand/Zurich.pm | |
parent | 0e257b2201998d428b3624a15dfeeb03a5559371 (diff) | |
parent | b8685054be0e16bc836dc568c0687a6f86400f38 (diff) |
Merge branch '1300-multiple-update-photos'
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/Zurich.pm')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Zurich.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Zurich.pm b/perllib/FixMyStreet/Cobrand/Zurich.pm index b7c9e9f45..ea4eda8c4 100644 --- a/perllib/FixMyStreet/Cobrand/Zurich.pm +++ b/perllib/FixMyStreet/Cobrand/Zurich.pm @@ -1172,7 +1172,7 @@ sub admin_stats { $public_response =~ s{\r?\n}{ <br/> }g if $public_response; # Assemble photo URL, if report has a photo - my $media_url = $report->get_photo_params->{url} ? ($c->cobrand->base_url . $report->get_photo_params->{url}) : ''; + my $media_url = @{$report->photos} ? ($c->cobrand->base_url . $report->photos->[0]->{url}) : ''; my @columns = ( $report->id, |