fix: php 8 warning

This commit is contained in:
Florian HENRY 2025-01-29 18:35:54 +01:00
parent b167d6ee97
commit a4c397a68b

View file

@ -95,7 +95,7 @@ if (!getDolGlobalString('EXPENSEREPORT_DISABLE_ATTACHMENT_ON_LINES')) {
}
print '<div class="photoref backgroundblank">';
print $thumbshown ? $thumbshown : img_mime($minifile);
print $thumbshown ? $thumbshown : ($minifile ? img_mime($minifile): '');
print '</div>';
if (empty($urlforhref) || empty($thumbshown)) {