case 'civicrm_uf_match':
// normal queries won't work for uf_match since that will lead to violation of unique constraint,
- // failing to meet intended result. Therefore we introduce this additonal query:
+ // failing to meet intended result. Therefore we introduce this additional query:
$sqls[] = "DELETE FROM civicrm_uf_match WHERE contact_id = {$mainId}";
break;
}
}
// overwrite - need to delete block which belongs to main-contact.
- if ($mainBlockId && ($operation == 2)) {
+ if (isset($mainBlockId) && $mainBlockId && ($operation == 2)) {
$deleteDAO = new $daoName();
$deleteDAO->id = $mainBlockId;
$deleteDAO->find(TRUE);