[error] PHP Notice: Undefined index:
| From: | w dot kutting at gmx dot de | Date: | Thu, 20 Mar 2003 16:39:18 +0000 |
| Subject: | [error] PHP Notice: Undefined index: | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-8780@lists.php.net to get a copy of this message | ||
Hi, inside my templatefile is a passage
{if $pic}
{$pic}
{/if}
When i call the template with Smarty 2.5.0 RC1
i get the error
[error] PHP Notice: Undefined index: pic in .....
The error only shows when i am not assigning a value to smarty
When i assign a value to $smarty->assign("pic",''); everything is
alright. But as am am filling this variable on request, i am not eager
to put empty values for every variable used in the template.
I isset inside smarty would be the best, but i don#t find anything like
that ?