X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FLogging%2FReportSummary.php;h=5ecdcac11bebff0136b4ed60fae0b8946134e07e;hb=51efd9c43f2157c34443d3f1bbd0a13d32e90c0d;hp=2a882e842d8ee100ef9623d12dd5daef350dd763;hpb=060ea8f8e944292abc945b136c66cb7ccabd4fc1;p=civicrm-core.git diff --git a/CRM/Logging/ReportSummary.php b/CRM/Logging/ReportSummary.php index 2a882e842d..5ecdcac11b 100644 --- a/CRM/Logging/ReportSummary.php +++ b/CRM/Logging/ReportSummary.php @@ -10,10 +10,7 @@ */ /** - * - * @package CRM - * @copyright CiviCRM LLC https://civicrm.org/licensing - * $Id$ + * Class CRM_Logging_ReportSummary */ class CRM_Logging_ReportSummary extends CRM_Report_Form { protected $cid; @@ -280,7 +277,7 @@ WHERE log_date <= %1 AND id = %2 ORDER BY log_date DESC LIMIT 1"; if (array_key_exists('options', $this->_logTables[$entity]['bracket_info']) && $entityID ) { - return CRM_Utils_Array::value($entityID, $this->_logTables[$entity]['bracket_info']['options']); + return $this->_logTables[$entity]['bracket_info']['options'][$entityID] ?? NULL; } } } @@ -342,7 +339,7 @@ WHERE log_date <= %1 AND id = %2 ORDER BY log_date DESC LIMIT 1"; $this->addToDeveloperTab($this->temporaryTable->getCreateSql()); $this->temporaryTableName = $this->temporaryTable->getName(); - $logTypes = CRM_Utils_Array::value('log_type_value', $this->_params); + $logTypes = $this->_params['log_type_value'] ?? NULL; unset($this->_params['log_type_value']); if (empty($logTypes)) { foreach (array_keys($this->_logTables) as $table) {