cvs: pear /HTML_Table Table.php
| From: | Helgi �ormar �orbj�rnsson | Date: | Tue, 26 Oct 2004 18:46:40 +0000 |
| Subject: | cvs: pear /HTML_Table Table.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-25251@lists.php.net to get a copy of this message | ||
dufuz Tue Oct 26 14:46:40 2004 EDT
Modified files:
/pear/HTML_Table Table.php
Log:
only call _isAttributesArray if it's needed in set/updateRowAttributes
http://cvs.php.net/diff.php/pear/HTML_Table/Table.php?r1=1.18&r2=1.19&ty=u
Index: pear/HTML_Table/Table.php
diff -u pear/HTML_Table/Table.php:1.18 pear/HTML_Table/Table.php:1.19
--- pear/HTML_Table/Table.php:1.18 Tue Oct 12 18:08:57 2004
+++ pear/HTML_Table/Table.php Tue Oct 26 14:46:40 2004
@@ -17,7 +17,7 @@
// | Bertrand Mansion <bmansion@mamasam.com> |
// +----------------------------------------------------------------------+
//
-// $Id: Table.php,v 1.18 2004/10/12 22:08:57 dufuz Exp $
+// $Id: Table.php,v 1.19 2004/10/26 18:46:40 dufuz Exp $
require_once 'PEAR.php';
require_once 'HTML/Common.php';
@@ -389,8 +389,8 @@
*/
function setRowAttributes($row, $attributes, $inTR = false)
{
- $multiAttr = $this->_isAttributesArray($attributes);
if (!$inTR) {
+ $multiAttr = $this->_isAttributesArray($attributes);
for ($i = 0; $i < $this->_cols; $i++) {
if ($multiAttr) {
$this->setCellAttributes($row, $i,
@@ -420,8 +420,8 @@
*/
function updateRowAttributes($row, $attributes = null, $inTR = false)
{
- $multiAttr = $this->_isAttributesArray($attributes);
if (!$inTR) {
+ $multiAttr = $this->_isAttributesArray($attributes);
for ($i = 0; $i < $this->_cols; $i++) {
if ($multiAttr) {
$this->updateCellAttributes($row, $i,