mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +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
|
- fixed warnings with html_select_date and timestamp
|
||||||
functions (Monte)
|
functions (Monte)
|
||||||
- added support for sub directory exlusion format (Monte)
|
- added support for sub directory exlusion format (Monte)
|
||||||
|
@@ -47,6 +47,10 @@ function smarty_function_cycle($params, &$smarty)
|
|||||||
$advance = true;
|
$advance = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isset($reset)) {
|
||||||
|
$reset = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (!in_array('values', array_keys($params))) {
|
if (!in_array('values', array_keys($params))) {
|
||||||
if(!isset($cycle_vars[$name]['values'])) {
|
if(!isset($cycle_vars[$name]['values'])) {
|
||||||
$smarty->trigger_error("cycle: missing 'values' parameter");
|
$smarty->trigger_error("cycle: missing 'values' parameter");
|
||||||
|
@@ -47,6 +47,10 @@ function smarty_function_cycle($params, &$smarty)
|
|||||||
$advance = true;
|
$advance = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isset($reset)) {
|
||||||
|
$reset = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (!in_array('values', array_keys($params))) {
|
if (!in_array('values', array_keys($params))) {
|
||||||
if(!isset($cycle_vars[$name]['values'])) {
|
if(!isset($cycle_vars[$name]['values'])) {
|
||||||
$smarty->trigger_error("cycle: missing 'values' parameter");
|
$smarty->trigger_error("cycle: missing 'values' parameter");
|
||||||
|
Reference in New Issue
Block a user