mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
gave $reset a default value in cycle function
This commit is contained in:
1
NEWS
1
NEWS
@@ -1,3 +1,4 @@
|
||||
- gave $reset a default value in cycle plugin (Monte)
|
||||
- fixed warnings with html_select_date and timestamp
|
||||
functions (Monte)
|
||||
- added support for sub directory exlusion format (Monte)
|
||||
|
@@ -46,7 +46,11 @@ function smarty_function_cycle($params, &$smarty)
|
||||
if (!isset($advance)) {
|
||||
$advance = true;
|
||||
}
|
||||
|
||||
|
||||
if (!isset($reset)) {
|
||||
$reset = false;
|
||||
}
|
||||
|
||||
if (!in_array('values', array_keys($params))) {
|
||||
if(!isset($cycle_vars[$name]['values'])) {
|
||||
$smarty->trigger_error("cycle: missing 'values' parameter");
|
||||
|
@@ -46,7 +46,11 @@ function smarty_function_cycle($params, &$smarty)
|
||||
if (!isset($advance)) {
|
||||
$advance = true;
|
||||
}
|
||||
|
||||
|
||||
if (!isset($reset)) {
|
||||
$reset = false;
|
||||
}
|
||||
|
||||
if (!in_array('values', array_keys($params))) {
|
||||
if(!isset($cycle_vars[$name]['values'])) {
|
||||
$smarty->trigger_error("cycle: missing 'values' parameter");
|
||||
|
Reference in New Issue
Block a user