Warning: Undefined Index:
| From: | Steve | Date: | Sat, 30 Mar 2002 01:28:44 +0000 |
| Subject: | Warning: Undefined Index: | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3412@lists.php.net to get a copy of this message | ||
I just turned on error reporting to E_ALL because of the discussion on the
list. I'm writing to clarify that I understand the issue previously
discussed.
In my template I have the following:
{if $smarty.get.id == $manufacturers[man]->id and $smarty.get.mode ==
"modify"}
The warning reported is:
Warning: Undefined index: id in
/var/www/html/admin/templates_c/-14/-1424756358/0.php on line 115
Is it necessary to do a isset() call in the template on this to prevent the
error? Or, is turning the error reporting down the only solution?
Thanks,
Steve