diff options
Diffstat (limited to 'libs/Smarty/plugins/function.cycle.php')
-rw-r--r-- | libs/Smarty/plugins/function.cycle.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libs/Smarty/plugins/function.cycle.php b/libs/Smarty/plugins/function.cycle.php index 80378b7f96..fe78bb87da 100644 --- a/libs/Smarty/plugins/function.cycle.php +++ b/libs/Smarty/plugins/function.cycle.php @@ -63,11 +63,7 @@ function smarty_function_cycle($params, &$smarty) $cycle_vars[$name]['values'] = $params['values']; } - if (isset($params['delimiter'])) { - $cycle_vars[$name]['delimiter'] = $params['delimiter']; - } elseif (!isset($cycle_vars[$name]['delimiter'])) { - $cycle_vars[$name]['delimiter'] = ','; - } + $cycle_vars[$name]['delimiter'] = (isset($params['delimiter'])) ? $params['delimiter'] : ','; if(is_array($cycle_vars[$name]['values'])) { $cycle_array = $cycle_vars[$name]['values']; |