cvs: pear /HTML_Table Table.php
| From: | Bertrand Mansion | Date: | Wed, 07 Jul 2004 16:21:45 +0000 |
| Subject: | cvs: pear /HTML_Table Table.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-21599@lists.php.net to get a copy of this message | ||
mansion Wed Jul 7 12:21:45 2004 EDT
Modified files:
/pear/HTML_Table Table.php
Log:
Fix #786, if the value was a zero, the cell content was converted to the autofill value.
http://cvs.php.net/diff.php/pear/HTML_Table/Table.php?r1=1.13&r2=1.14&ty=u
Index: pear/HTML_Table/Table.php
diff -u pear/HTML_Table/Table.php:1.13 pear/HTML_Table/Table.php:1.14
--- pear/HTML_Table/Table.php:1.13 Wed Jul 7 12:20:24 2004
+++ pear/HTML_Table/Table.php Wed Jul 7 12:21:45 2004
@@ -17,7 +17,7 @@
// | Bertrand Mansion <bmansion@mamasam.com> |
// +----------------------------------------------------------------------+
//
-// $Id: Table.php,v 1.13 2004/07/07 16:20:24 mansion Exp $
+// $Id: Table.php,v 1.14 2004/07/07 16:21:45 mansion Exp $
require_once "PEAR.php";
require_once "HTML/Common.php";
@@ -617,7 +617,7 @@
if (is_array($contents)) {
$contents = implode(", ",$contents);
}
- if (isset($this->_autoFill) && $contents == "") {
+ if (isset($this->_autoFill) && $contents === '') {
$contents = $this->_autoFill;
}
$strHtml .= $contents;