Fix coding error in #27604
authorlarssandergreen <lars@wildsight.ca>
Sun, 24 Sep 2023 16:31:06 +0000 (10:31 -0600)
committerlarssandergreen <lars@wildsight.ca>
Sun, 24 Sep 2023 16:54:36 +0000 (10:54 -0600)
CRM/Core/Smarty/plugins/function.help.php

index a9a0dab324453a6a27ab21143ec49ee80e712708..a7010ef8edde869cd6a274c57af70130d0b60115 100644 (file)
@@ -60,7 +60,7 @@ function smarty_function_help($params, &$smarty) {
     if (!array_key_exists('params', $vars)) {
       // In the unlikely event that params already exists, we don't want to
       // overwrite it, so only do this if not already set.
-      $temporary_vars[] = ['params' => []];
+      $temporary_vars += ['params' => []];
     }
     // Note fetchWith adds the temporary ones to the existing scope but then
     // will reset, unsetting them if not already present before, which is what