X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FLogging%2FReportDetail.php;h=fdbd92216a895882e7e64861f067e6119585fb40;hb=d386a2ca2a30d9ca9ed1fdde1e0d7ae4fb5a75b3;hp=d239a602da27af5d06c540e7a3b3073c1550656f;hpb=cc58f6c5756ba74b4a914e21bb011332d5d79c80;p=civicrm-core.git diff --git a/CRM/Logging/ReportDetail.php b/CRM/Logging/ReportDetail.php index d239a602da..fdbd92216a 100644 --- a/CRM/Logging/ReportDetail.php +++ b/CRM/Logging/ReportDetail.php @@ -203,10 +203,10 @@ class CRM_Logging_ReportDetail extends CRM_Report_Form { ) { $froms = $tos = []; foreach (explode(CRM_Core_DAO::VALUE_SEPARATOR, trim($from, CRM_Core_DAO::VALUE_SEPARATOR)) as $val) { - $froms[] = CRM_Utils_Array::value($val, $values[$field]); + $froms[] = $values[$field][$val] ?? NULL; } foreach (explode(CRM_Core_DAO::VALUE_SEPARATOR, trim($to, CRM_Core_DAO::VALUE_SEPARATOR)) as $val) { - $tos[] = CRM_Utils_Array::value($val, $values[$field]); + $tos[] = $values[$field][$val] ?? NULL; } $from = implode(', ', array_filter($froms)); $to = implode(', ', array_filter($tos)); @@ -257,7 +257,8 @@ class CRM_Logging_ReportDetail extends CRM_Report_Form { * Store the dsn for the logging database in $this->db. */ protected function storeDB() { - $dsn = defined('CIVICRM_LOGGING_DSN') ? DB::parseDSN(CIVICRM_LOGGING_DSN) : DB::parseDSN(CIVICRM_DSN); + $dsn = defined('CIVICRM_LOGGING_DSN') ? CRM_Utils_SQL::autoSwitchDSN(CIVICRM_LOGGING_DSN) : CRM_Utils_SQL::autoSwitchDSN(CIVICRM_DSN); + $dsn = DB::parseDSN($dsn); $this->db = $dsn['database']; }