mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 11:54:26 +02:00
fixed calling registered objects' methods with an empty argument list.
thanks marcello
This commit is contained in:
2
NEWS
2
NEWS
@@ -1,3 +1,5 @@
|
|||||||
|
- fix calling registered objects' methods with an empty argument list
|
||||||
|
(marcello, messju)
|
||||||
- fix html_select_date separator when parts are missing (hayk,
|
- fix html_select_date separator when parts are missing (hayk,
|
||||||
monte)
|
monte)
|
||||||
- fix broken detection of non-cached blocks introduced in 2.6.17
|
- fix broken detection of non-cached blocks introduced in 2.6.17
|
||||||
|
@@ -869,7 +869,7 @@ class Smarty_Compiler extends Smarty {
|
|||||||
// traditional argument format
|
// traditional argument format
|
||||||
$args = implode(',', array_values($attrs));
|
$args = implode(',', array_values($attrs));
|
||||||
if (empty($args)) {
|
if (empty($args)) {
|
||||||
$args = 'null';
|
$args = '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user