cvs: pear /HTML_QuickForm/QuickForm element.php
| From: | Alexey Borzov | Date: | Fri, 05 Oct 2007 10:22:57 +0000 |
| Subject: | cvs: pear /HTML_QuickForm/QuickForm element.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-48750@lists.php.net to get a copy of this message | ||
avb Fri Oct 5 10:22:57 2007 UTC
Modified files:
/pear/HTML_QuickForm/QuickForm element.php
Log:
was incorrectly displayed as a value for frozen elements with value of 0 (bug #11995)
http://cvs.php.net/viewvc.cgi/pear/HTML_QuickForm/QuickForm/element.php?r1=1.35&r2=1.36&diff_format=u
Index: pear/HTML_QuickForm/QuickForm/element.php
diff -u pear/HTML_QuickForm/QuickForm/element.php:1.35
pear/HTML_QuickForm/QuickForm/element.php:1.36
--- pear/HTML_QuickForm/QuickForm/element.php:1.35 Tue May 29 18:34:36 2007
+++ pear/HTML_QuickForm/QuickForm/element.php Fri Oct 5 10:22:57 2007
@@ -19,7 +19,7 @@
* @author Alexey Borzov <avb@php.net>
* @copyright 2001-2007 The PHP Group
* @license http://www.php.net/license/3_01.txt PHP License 3.01
- * @version CVS: $Id: element.php,v 1.35 2007/05/29 18:34:36 avb Exp $
+ * @version CVS: $Id: element.php,v 1.36 2007/10/05 10:22:57 avb Exp $
* @link http://pear.php.net/package/HTML_QuickForm
*/
@@ -235,7 +235,7 @@
function getFrozenHtml()
{
$value = $this->getValue();
- return ('' != $value? htmlspecialchars($value): ' ') .
+ return (strlen($value)? htmlspecialchars($value): ' ') .
$this->_getPersistantData();
} //end func getFrozenHtml