From c8049ea387e8a07a8508cffc9f5122b5ea7e4da0 Mon Sep 17 00:00:00 2001 From: Flaviu Mates Date: Thu, 26 Nov 2020 17:24:05 +0200 Subject: [PATCH] TT#101108 - Fix condition when reseller has no logo Change-Id: I1c6213ae039dce2bba8fc80b4212ce78e2165c92 --- lib/NGCP/Panel/Controller/API/ResellerBrandingLogos.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/NGCP/Panel/Controller/API/ResellerBrandingLogos.pm b/lib/NGCP/Panel/Controller/API/ResellerBrandingLogos.pm index 38cbe63296..5753ca27e6 100644 --- a/lib/NGCP/Panel/Controller/API/ResellerBrandingLogos.pm +++ b/lib/NGCP/Panel/Controller/API/ResellerBrandingLogos.pm @@ -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);