/**
* Global validation rules for the form
*
- * @param array $values posted values of the form
+ * @param array $values
+ * Posted values of the form.
*
* @param $files
* @param CRM_Core_Form $form
// FIXME: Is there an existing function to close a relationship?
$query = 'UPDATE civicrm_relationship SET end_date=%2 WHERE id=%1';
foreach ($rels as $relId => $relData) {
- $relParams = array(1 => array($relId, 'Integer'),
+ $relParams = array(
+ 1 => array($relId, 'Integer'),
2 => array($params['end_date'], 'Timestamp'),
);
CRM_Core_DAO::executeQuery($query, $relParams);