cvs: pear /HTML_Table Table.php
| From: | Mark Wiesemann | Date: | Fri, 21 Oct 2005 08:00:15 +0000 |
| Subject: | cvs: pear /HTML_Table Table.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-35755@lists.php.net to get a copy of this message | ||
wiesemann Fri Oct 21 04:00:15 2005 EDT
Modified files:
/pear/HTML_Table Table.php
Log:
Fix for addRow(): it has to return $ret always, as it could be a PEAR::Error object or the row
index
http://cvs.php.net/diff.php/pear/HTML_Table/Table.php?r1=1.26&r2=1.27&ty=u
Index: pear/HTML_Table/Table.php
diff -u pear/HTML_Table/Table.php:1.26 pear/HTML_Table/Table.php:1.27
--- pear/HTML_Table/Table.php:1.26 Fri Sep 9 09:06:03 2005
+++ pear/HTML_Table/Table.php Fri Oct 21 04:00:14 2005
@@ -28,7 +28,7 @@
* @author Bertrand Mansion <bmansion@mamasam.com>
* @copyright 2005 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: Table.php,v 1.26 2005/09/09 13:06:03 dufuz Exp $
+ * @version CVS: $Id: Table.php,v 1.27 2005/10/21 08:00:14 wiesemann Exp $
* @link http://pear.php.net/package/HTML_Table
*/
@@ -414,9 +414,7 @@
function addRow($contents = null, $attributes = null, $type = 'td', $inTR = false)
{
$ret = $this->_tbody->addRow($contents, $attributes, $type, $inTR);
- if (PEAR::isError($ret)) {
- return $ret;
- }
+ return $ret;
}
/**