Re: [SMARTY] non-existance variables (one idea)
| From: | Pupeno | Date: | Wed, 16 Oct 2002 09:07:09 +0000 |
| Subject: | Re: [SMARTY] non-existance variables (one idea) | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-6173@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Monday 14 October 2002 05:38, Pupeno wrote:
> Well, by just adding this line:
> $output = "isset($output) ? $output : NULL";
> to the end of the Smarty_Compiler::_parse_var($var_expr) function (line
> 1161, before the parse modifiers call) it solved the problem and it seems
> it doesn't break functinality, but I may be wrong, does it ?
I was wrong, but I've found it:
everything should be enclosed between ():
$output = "(isset($output) ? $output : NULL)";
or even better:
$output = "((isset($output)) ? $output : NULL)";
Thank you.
- --
Pupeno: pupeno@pupeno.com
http://www.pupeno.com
- ---
Help the hungry children of Argentina,
please go to (and make it your homepage):
http://www.porloschicos.com/servlet/PorLosChicos?comando=donar
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9rSxBLr8z5XzmSDQRAsldAJ48nIofrBdtcFdoxHvhphnTtyQypgCfd0fF
Gx6JziNf9n8OoWbquUiL/ms=
=OOyW
-----END PGP SIGNATURE-----