cvs: smarty /libs Smarty_Compiler.class.php
| From: | Monte Ohrt | Date: | Thu, 20 Mar 2003 14:31:18 +0000 |
| Subject: | cvs: smarty /libs Smarty_Compiler.class.php | ||
| Groups: | php.smarty.cvs | ||
| Request: | Send a blank email to php-smarty-cvs+get-484@lists.php.net to get a copy of this message | ||
mohrt Thu Mar 20 09:31:18 2003 EDT
Modified files:
/smarty/libs Smarty_Compiler.class.php
Log:
fix notice when no parameter is passed to default
Index: smarty/libs/Smarty_Compiler.class.php
diff -u smarty/libs/Smarty_Compiler.class.php:1.196 smarty/libs/Smarty_Compiler.class.php:1.197
--- smarty/libs/Smarty_Compiler.class.php:1.196 Wed Mar 19 07:51:34 2003
+++ smarty/libs/Smarty_Compiler.class.php Thu Mar 20 09:31:18 2003
@@ -1640,7 +1640,7 @@
if($output{0} == '$') {
$output = '@' . $output;
}
- if($_modifier_args[0]{0} == '$') {
+ if(isset($_modifier_args[0]) && $_modifier_args[0]{0} == '$') {
$_modifier_args[0] = '@' . $_modifier_args[0];
}
}