This commit is contained in:
uwetews
2017-04-24 18:21:37 +02:00
parent e3eda8a5f5
commit 5448fecc9d
2 changed files with 5 additions and 2 deletions

View File

@@ -1,4 +1,7 @@
===== 3.1.32 - dev ===
24.4.2017
- fix spelling https://github.com/smarty-php/smarty/commit/e3eda8a5f5653d8abb960eb1bc47e3eca679b1b4#commitcomment-21803095
17.4.2017
- correct generated code on empty() and isset() call, observe change PHP behaviour since PHP 5.5
https://github.com/smarty-php/smarty/issues/347

View File

@@ -807,7 +807,7 @@ abstract class Smarty_Internal_TemplateCompilerBase
$parHasFuction = strpos($par, '(') !== false;
if ($func_name === 'isset') {
if (count($parameter) === 0) {
$this->trigger_template_error('Illegal number of paramer in "isset()"');
$this->trigger_template_error('Illegal number of parameter in "isset()"');
}
if ($parHasFuction) {
$pa = array();
@@ -826,7 +826,7 @@ abstract class Smarty_Internal_TemplateCompilerBase
'prev',
'next'))) {
if (count($parameter) !== 1) {
$this->trigger_template_error("Illegal number of paramer in '{$func_name()}'");
$this->trigger_template_error("Illegal number of parameter in '{$func_name()}'");
}
if ($func_name === 'empty') {
if ($parHasFuction && version_compare(PHP_VERSION, '5.5.0', '<')) {