From 145177234b4f06cd050b632995df7b121fd8a7d3 Mon Sep 17 00:00:00 2001 From: nbm Date: Wed, 5 Apr 2006 11:53:16 +0000 Subject: [PATCH] KTS-641: Give array_reduce a starting value, else some versions of PHP will put the initial value as the starting value. --- lib/templating/smartytemplate.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/templating/smartytemplate.inc.php b/lib/templating/smartytemplate.inc.php index 9878ea8..2382bfa 100644 --- a/lib/templating/smartytemplate.inc.php +++ b/lib/templating/smartytemplate.inc.php @@ -103,7 +103,7 @@ class KTSmartyTemplate extends KTTemplate { } if (!empty($params)) { $flattened = array_map(null, array_keys($params), array_values($params)); - $replacements = array_reduce($flattened, array('KTSmartyTemplate', '_i18n_get_args')); + $replacements = array_reduce($flattened, array('KTSmartyTemplate', '_i18n_get_args'), ""); } else { $replacements = array(); } -- libgit2 0.21.4