Bug in HTML/QuickForm/element.php ?
| From: | Alessandro Pasotti | Date: | Thu, 06 Sep 2007 12:52:26 +0000 |
| Subject: | Bug in HTML/QuickForm/element.php ? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-27878@lists.php.net to get a copy of this message | ||
Hello,
I'm not sure if this is a bug or not, in the function listed below, if $value
is set to zero, it is rendered as an ' '. I would expect it prints '0'
instead.
function getFrozenHtml()
{
$value = $this->getValue();
return ('' != $value? htmlspecialchars($value): ' ') .
$this->_getPersistantData();
} //end func getFrozenHtml
Perhaps it should check for
'' !== $value
My version is
@version Release: 3.2.9
Do you think I should file the bug?
--
Alessandro Pasotti
itOpen - "Open Solutions for the Net Age"
w3: www.itopen.it
Linux User# 167502