mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-05 20:24:18 +02:00
- bugfix isset() did not allow multiple parameter
- improvment of some error messages - bugfix html_image did use removed property $request_use_auto_globals
This commit is contained in:
@@ -37,7 +37,7 @@ class Smarty_Internal_Compile_Foreach extends Smarty_Internal_CompileBase {
|
||||
$item = $_attr['item'];
|
||||
|
||||
if (substr_compare("\$_smarty_tpl->getVariable($item)", $from,0, strlen("\$_smarty_tpl->getVariable($item)")) == 0) {
|
||||
$this->compiler->trigger_template_error("item parameter {$item} may not be the same parameter at 'from'");
|
||||
$this->compiler->trigger_template_error("item variable {$item} may not be the same variable as at 'from'", $this->compiler->lex->taglineno);
|
||||
}
|
||||
|
||||
if (isset($_attr['key'])) {
|
||||
|
||||
Reference in New Issue
Block a user