bug equating zero and null

From: Date: Tue, 21 Dec 2004 10:46:45 +0000
Subject: bug equating zero and null
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12057@lists.php.net to get a copy of this message
Hi, I'm fighting what appears to be a bug in smarty. My variable (let's say $x) coming in is NULL. I have a smarty test: {if $x eq '0'}selected{/if} that is getting triggered by $x being NULL. Ouch. Is that a bug or a feature? ??

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