prevent convert exception, if image couldn't loaded

This commit is contained in:
Daniel Seifert 2020-06-04 10:39:21 +02:00
parent ccb8ffe403
commit 8affd5e4ae
Signed by: DanielS
GPG Key ID: 8A7C4C6ED1915C6F

View File

@ -3,7 +3,10 @@
[{block name="pdfToping"}] [{block name="pdfToping"}]
<div class="pdf_header_positioning"> <div class="pdf_header_positioning">
[{if $showLogo}] [{if $showLogo}]
<img alt="" src="[{$oViewConf->getImageUrl('Elektroversand-Schmidt_Logo_180.jpg')}]"> [{assign var="logoUrl" value=$oViewConf->getImageUrl('Elektroversand-Schmidt_Logo_180.jpg')}]
[{if $logoUrl}]
<img alt="" src="[{$logoUrl}]">
[{/if}]
[{/if}] [{/if}]
</div> </div>
[{/block}] [{/block}]