From 18f616b201eb6ccab8e2cfcd7cb366abd400c466 Mon Sep 17 00:00:00 2001 From: MDW Date: Wed, 29 Jan 2025 01:05:06 +0100 Subject: [PATCH] Qual: Fix remaining phan notice in expensereport_linktofile --- htdocs/expensereport/tpl/expensereport_linktofile.tpl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/expensereport/tpl/expensereport_linktofile.tpl.php b/htdocs/expensereport/tpl/expensereport_linktofile.tpl.php index c4fbd00374b..c565fe32894 100644 --- a/htdocs/expensereport/tpl/expensereport_linktofile.tpl.php +++ b/htdocs/expensereport/tpl/expensereport_linktofile.tpl.php @@ -103,7 +103,7 @@ if (!getDolGlobalString('EXPENSEREPORT_DISABLE_ATTACHMENT_ON_LINES')) { print '
'; // 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 '
'; if (empty($urlforhref) || empty($thumbshown)) {