Unwanted warnings with error_reporting=E_ALL in php.ini :-(
| From: | programisci_listy | Date: | Thu, 14 Mar 2002 11:52:17 +0000 |
| Subject: | Unwanted warnings with error_reporting=E_ALL in php.ini :-( | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-3053@lists.php.net to get a copy of this message | ||
I am using global_variables=off and error_reporting=E_ALL and I found
many warnings in Smarty. It would be nice to improve it because during
developing it is easer to find bugs with these settings.
Eg. 'default' modifier always shows warning.
Another example is with {if}. I have to change it from
{if $smarty.get.myoption}
to
{if !empty($smarty.get.myoption)}
The same with smarty_function_popup(). The line 23 of
function.popup.php (dir: plugins) sholud be changed from
if ($sticky) { echo ",STICKY"; }
to
if (!empty($sticky)) { echo ",STICKY"; }
--
Jarek