From: Seamus Lee Date: Mon, 7 Jun 2021 20:55:47 +0000 (+0000) Subject: [php8-compat] Fix Resources Test issue due to undefined array key addCacheCode X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=83afe752d367e194c4b2e2d585a4615063403a67;p=civicrm-core.git [php8-compat] Fix Resources Test issue due to undefined array key addCacheCode --- diff --git a/CRM/Core/Smarty/plugins/function.crmResURL.php b/CRM/Core/Smarty/plugins/function.crmResURL.php index 7a9a9b947d..96e6797905 100644 --- a/CRM/Core/Smarty/plugins/function.crmResURL.php +++ b/CRM/Core/Smarty/plugins/function.crmResURL.php @@ -39,5 +39,5 @@ function smarty_function_crmResURL($params, &$smarty) { if (!array_key_exists('file', $params)) { $params['file'] = NULL; } - return $res->getUrl($params['ext'], $params['file'], $params['addCacheCode']); + return $res->getUrl($params['ext'], $params['file'], $params['addCacheCode'] ?? FALSE); }