Re: [SMARTY] non-existance variables (one idea)

From: Date: Mon, 14 Oct 2002 09:38:15 +0000
Subject: Re: [SMARTY] non-existance variables (one idea)
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6127@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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 ? You may argue that this makes the resulting scripts slower, yes, that's true, if that's really important, is it posible to make this optional (by a configuring variable or something like that ?) 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) iD8DBQE9qpCKLr8z5XzmSDQRAgCGAJ9nib5WfkohmUqZr5YVCXAydA3k8gCgzfmF DADfw8A/BPCFTEh7v6C3amg= =NxXB -----END PGP SIGNATURE-----

« previous php.smarty.general (#6127) next »