$this->assign('otherUfName', $otherUser ? $otherUser['name'] : NULL);
}
- $cmsUser = ($mainUfId && $otherUfId) ? TRUE : FALSE;
+ $cmsUser = $mainUfId && $otherUfId;
$this->assign('user', $cmsUser);
$rowsElementsAndInfo = CRM_Dedupe_Merger::getRowsElementsAndInfo($this->_cid, $this->_oid);
CRM_Utils_System::permissionDenied();
}
// ensure that oid is not the current user, if so refuse to do the merge
- if (CRM_Core_Session::singleton()->getLoggedInContactID() == $oid) {
+ if (CRM_Core_Session::getLoggedInContactID() == $oid) {
$message = ts('The contact record which is linked to the currently logged in user account - \'%1\' - cannot be deleted.',
[1 => CRM_Core_Session::singleton()->getLoggedInContactDisplayName()]
);