Qual: Fix remaining phan notice in expensereport_linktofile

This commit is contained in:
MDW 2025-01-29 01:05:06 +01:00
parent 991afe2b21
commit 18f616b201
No known key found for this signature in database

View File

@ -103,7 +103,7 @@ if (!getDolGlobalString('EXPENSEREPORT_DISABLE_ATTACHMENT_ON_LINES')) {
print '<div class="photoref backgroundblank">';
// TODO: Check that $minifile has a proper value here (set in true part of if, not else part).
print $thumbshown ? $thumbshown : img_mime($minifile);
print $thumbshown ? $thumbshown : ($minifile ? img_mime($minifile) : null);
print '</div>';
if (empty($urlforhref) || empty($thumbshown)) {