Commit b70a490c authored by Penny Leach's avatar Penny Leach
Browse files

made the argument handling for the smarty str callback better

parent be35ea20
......@@ -27,7 +27,10 @@ function smarty_function_str($params, &$smarty) {
}
$args = array($params['tag'],$params['section']);
if (isset($params['args']) && is_array($params['args'])) {
if (isset($params['args'])) {
if (!is_array($params['args'])) {
$params['args'] = array($params['args']);
}
$args = array_merge($args,$params['args']);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment