Commit 145177234b4f06cd050b632995df7b121fd8a7d3
1 parent
4beb1022
KTS-641: Give array_reduce a starting value, else some versions of PHP
will put the initial value as the starting value. git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5179 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
1 additions
and
1 deletions
lib/templating/smartytemplate.inc.php
| ... | ... | @@ -103,7 +103,7 @@ class KTSmartyTemplate extends KTTemplate { |
| 103 | 103 | } |
| 104 | 104 | if (!empty($params)) { |
| 105 | 105 | $flattened = array_map(null, array_keys($params), array_values($params)); |
| 106 | - $replacements = array_reduce($flattened, array('KTSmartyTemplate', '_i18n_get_args')); | |
| 106 | + $replacements = array_reduce($flattened, array('KTSmartyTemplate', '_i18n_get_args'), ""); | |
| 107 | 107 | } else { |
| 108 | 108 | $replacements = array(); |
| 109 | 109 | } | ... | ... |