}
if ($idFldName) {
+ $queryParams = array(1 => array($contactType, 'String'));
+
// if $force == 1 then update all contacts else only
// those with NULL greeting or addressee value CRM-9476
if ($processAll) {
}
if ($limit) {
- $sql .= " LIMIT $limit";
+ $sql .= " LIMIT 0, %2";
+ $queryParams += array(2 => array($limit, 'Integer'));
}
- $dao = CRM_Core_DAO::executeQuery($sql, array(1 => array($contactType, 'String')));
+ $dao = CRM_Core_DAO::executeQuery($sql, $queryParams);
while ($dao->fetch()) {
$filterContactFldIds[$dao->id] = $dao->$idFldName;