Update accounting-files.php

This commit is contained in:
Laurent Destailleur 2022-07-07 21:15:28 +02:00 committed by GitHub
parent 6b421823f5
commit 1e1be459b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -196,7 +196,7 @@ if (($action == 'searchfiles' || $action == 'dl')) {
if (!empty($projectid)) $sql .= " AND fk_projet = ".((int) $projectid);
}
// Expense reports
if (GETPOST('selectexpensereports') && !empty($listofchoices['selectexpensereports']['perms']) and empty($projectid)) {
if (GETPOST('selectexpensereports') && !empty($listofchoices['selectexpensereports']['perms']) && empty($projectid)) {
if (!empty($sql)) {
$sql .= " UNION ALL";
}