mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
fix assign function problem with empty value passed
This commit is contained in:
@@ -193,7 +193,7 @@ function smarty_func_assign($args, &$smarty_obj)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($value)) {
|
if (!in_array('value', array_keys($args))) {
|
||||||
$smarty_obj->_trigger_error_msg("assign: missing 'value' parameter");
|
$smarty_obj->_trigger_error_msg("assign: missing 'value' parameter");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user