Fixed AND operator to standardize code
This commit is contained in:
parent
82cfca1a80
commit
eb4c42e987
@ -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";
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user