CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $row['log_civicrm_entity_altered_contact_id'], 'is_deleted') !== '0';
}
- if (CRM_Utils_Array::value($row, 'log_civicrm_entity_altered_contact') &&
+ if (CRM_Utils_Array::value('log_civicrm_entity_altered_contact', $row) &&
!$isDeleted[$row['log_civicrm_entity_altered_contact_id']]) {
$row['log_civicrm_entity_altered_contact_link'] =
CRM_Utils_System::url('civicrm/contact/view', 'reset=1&cid=' . $row['log_civicrm_entity_altered_contact_id']);
$row['altered_by_contact_display_name_link'] = CRM_Utils_System::url('civicrm/contact/view', 'reset=1&cid=' . $row['log_civicrm_entity_log_user_id']);
$row['altered_by_contact_display_name_hover'] = ts("Go to contact summary");
- if ($row['log_civicrm_entity_is_deleted'] and 'Update' == CRM_Utils_Array::value($row, 'log_civicrm_entity_log_action')) {
+ if ($row['log_civicrm_entity_is_deleted'] and 'Update' == CRM_Utils_Array::value('log_civicrm_entity_log_action', $row)) {
$row['log_civicrm_entity_log_action'] = ts('Delete (to trash)');
}
if ('Contact' == CRM_Utils_Array::value('log_type', $this->_logTables[$row['log_civicrm_entity_log_type']]) &&
- $row['log_civicrm_entity_log_action'] == 'Insert' ) {
+ CRM_Utils_Array::value('log_civicrm_entity_log_action', $row) == 'Insert' ) {
$row['log_civicrm_entity_log_action'] = ts('Update');
}
- if (CRM_Utils_Array::value($row, 'log_civicrm_entity_log_action') &&
- $newAction = $this->getEntityAction($row['log_civicrm_entity_id'],
- $row['log_civicrm_entity_log_conn_id'],
- $row['log_civicrm_entity_log_type'],
- $row['log_civicrm_entity_log_action']))
+ if ($newAction = $this->getEntityAction($row['log_civicrm_entity_id'],
+ $row['log_civicrm_entity_log_conn_id'],
+ $row['log_civicrm_entity_log_type'],
+ CRM_Utils_Array::value('log_civicrm_entity_log_action', $row)))
$row['log_civicrm_entity_log_action'] = $newAction;
$row['log_civicrm_entity_log_type'] = $this->getLogType($row['log_civicrm_entity_log_type']);
$date = CRM_Utils_Date::isoToMysql($row['log_civicrm_entity_log_date']);
- if ('Update' == CRM_Utils_Array::value($row, 'log_civicrm_entity_log_action')) {
+ if ('Update' == CRM_Utils_Array::value('log_civicrm_entity_log_action', $row)) {
$q = "reset=1&log_conn_id={$row['log_civicrm_entity_log_conn_id']}&log_date=". $date;
if ($this->cid) {
$q .= '&cid=' . $this->cid;