TT#101108 - Fix condition when reseller has no logo

Change-Id: I1c6213ae039dce2bba8fc80b4212ce78e2165c92
mr9.2
Flaviu Mates 6 years ago
parent 83a084fbae
commit c8049ea387

@ -37,10 +37,9 @@ sub GET :Allow {
my $branding = $item->first->branding;
unless($branding || $branding->logo) {
if(!$branding || !$branding->logo) {
$self->error($c, HTTP_NOT_FOUND, "No branding logo available for this reseller");
return;
return;
}
$c->response->content_type($branding->logo_image_type);
$c->response->body($branding->logo);

Loading…
Cancel
Save