From fc33d7c6471d98bf016f73fe36de42147b77a85c Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 14 Sep 2021 11:01:06 +1200 Subject: [PATCH] Ensure TokenSmary::render returns an array If there are no messages it should return an empty array --- CRM/Core/TokenSmarty.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Core/TokenSmarty.php b/CRM/Core/TokenSmarty.php index 209d7160e2..4e88337c85 100644 --- a/CRM/Core/TokenSmarty.php +++ b/CRM/Core/TokenSmarty.php @@ -41,6 +41,7 @@ class CRM_Core_TokenSmarty { * @internal */ public static function render(array $messages, array $tokenContext = [], array $smartyAssigns = []): array { + $result = []; $tokenContextDefaults = [ 'controller' => __CLASS__, 'smarty' => TRUE, -- 2.25.1