Merge pull request #11577 from Vaadasch/patch-2

Change 0 and 1 to FALSE and TRUE for pgsql
This commit is contained in:
Laurent Destailleur 2019-07-30 19:34:34 +02:00 committed by GitHub
commit 1fc4db28c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1445,13 +1445,13 @@ class ExtraFields
$InfoFieldList[4] = str_replace('$ID$', '0', $InfoFieldList[4]);
} else {
if (!empty($matchCondition[1])) {
$boolCond = (($matchCondition[1] == "AND") ? ' AND 1 ' : ' OR 0 ');
$boolCond = (($matchCondition[1] == "AND") ? ' AND TRUE ' : ' OR FALSE ');
$InfoFieldList[4] = str_replace($matchCondition[0], $boolCond . $matchCondition[3], $InfoFieldList[4]);
} elseif (!empty($matchCondition[3])) {
$boolCond = (($matchCondition[3] == "AND") ? ' 1 AND ' : ' 0 OR');
$boolCond = (($matchCondition[3] == "AND") ? ' TRUE AND ' : ' FALSE OR');
$InfoFieldList[4] = str_replace($matchCondition[0], $boolCond, $InfoFieldList[4]);
} else {
$InfoFieldList[4] = 1;
$InfoFieldList[4] = " TRUE ";
}
}