https://issues.civicrm.org/jira/browse/CRM-17497
$query = 'SELECT * FROM `civicrm_membership_status`';
if ($active) {
- $query .= 'WHERE `is_current_member` = 1 OR `id` = %1 ';
+ $query .= ' WHERE `is_current_member` = 1 OR `id` = %1 ';
}
- $params[1] = array($pendingStatusId, 'String');
- $dao = CRM_Core_DAO::executeQuery($query, $params);
+ $dao = CRM_Core_DAO::executeQuery($query, array(1 => array($pendingStatusId, 'Integer')));
while ($dao->fetch()) {
$membershipStatusRecordIds[$dao->id] = $dao->id;