Skip to content

Smarty_Internal_TemplateCompilerBase bugfix #350

@tom2tom

Description

@tom2tom

Method compileTag2() in http://github.com/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php
includes several merges into a $new_args array. The last such merge omits the array-check included in the others, which causes a crash sometimes. Lines 666 ff. should replicate the other instances in the method:

foreach ($args as $key => $mixed) {
  if (is_array($mixed)) {
    $new_args = array_merge($new_args, $mixed);
  } else {
    $new_args[ $key ] = $mixed;
  }
} 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions