Re: [SMARTY-GENERAL] Warning: Undefined Index:
| From: | Andrei Zmievski | Date: | Thu, 04 Apr 2002 16:20:09 +0000 |
| Subject: | Re: [SMARTY-GENERAL] Warning: Undefined Index: | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3486@lists.php.net to get a copy of this message | ||
On Thu, 04 Apr 2002, Luc Saint-Elie wrote:
> Hello,
>
> In case I missed an answer to this post I'd be interested by a re-post.
>
> I'm in the same situation : development with E_ALL and a Notice error :
>
> Notice: Undefined index: users_online in
> T:\EasyPHP\www\projet1\templates_c\117\1172603085\0.php on line 123
>
> The template's code is :
> {if $users_online}({$users_online} personnes en ligne) {/if}
>
> The compiled template's line 123 is
> <?php if ($this->_tpl_vars['users_online']): ?>(<?php echo
> $this->_tpl_vars['users_online']; ?>
> personnes en ligne) <?php endif; ?>
You won't see this anymore. In the next release E_NOTICE will be turned
off for the duration of display()/fetch() call.
-Andrei
* Only 19,999 lines of C++ to my next ski trip... *