Fixed AND operator to standardize code

This commit is contained in:
Yoan Mollard 2022-06-19 19:21:51 +02:00
parent 82cfca1a80
commit eb4c42e987

View File

@ -254,7 +254,7 @@ if (($action == 'searchfiles' || $action == 'dl')) {
if(!empty($projectid)) $sql .= " AND fk_projet = ".$db->sanitize($projectid);
}
// Loan payments
if (GETPOST('selectloanspayment') && !empty($listofchoices['selectloanspayment']['perms']) and empty($projectid)) {
if (GETPOST('selectloanspayment') && !empty($listofchoices['selectloanspayment']['perms']) && empty($projectid)) {
if (!empty($sql)) {
$sql .= " UNION ALL";
}