----------------------------------------
* CRM-18554: Using IS EMPTY operator for some date fields crashes 4.7.7
https://issues.civicrm.org/jira/browse/CRM-18554
}
if ($date) {
- $this->_where[$grouping][] = "{$tableName}.{$dbFieldName} $op $date";
+ $this->_where[$grouping][] = self::buildClause("{$tableName}.{$dbFieldName}", $op, $date);
}
else {
- $this->_where[$grouping][] = "{$tableName}.{$dbFieldName} $op";
+ $this->_where[$grouping][] = self::buildClause("{$tableName}.{$dbFieldName}", $op);
}
$this->_tables[$tableName] = $this->_whereTables[$tableName] = 1;