$errors = array();
$fieldSelected = FALSE;
for ($count = 0; $count < self::RULES_COUNT; $count++) {
- if (!empty($fields["where_$count"]) || ($self->_defaults['is_reserved'] && !empty($self->_defaults["where_$count"]))) {
+ if (!empty($fields["where_$count"]) || ($self->_defaults['is_reserved'] && !empty($self->_defaults["where_$count"]))) {
$fieldSelected = TRUE;
break;
}
}
// lets skip updating of fields for reserved dedupe group
- if ($this->_defaults['is_reserved']) {
+ if (isset($this->_defaults['is_reserved'])) {
CRM_Core_Session::setStatus(ts("The rule '%1' has been saved.", array(1 => $rgDao->title)), ts('Saved'), 'success');
return;
}