cvs: php4 /pear/HTML Table.php

From: Date: Tue, 20 Nov 2001 19:39:02 +0000
Subject: cvs: php4 /pear/HTML Table.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-1387@lists.php.net to get a copy of this message
adaniel Tue Nov 20 14:39:02 2001 EDT Modified files: /php4/pear/HTML Table.php Log: fixed small bug in altRowAttributes which made second attribute be applied before the first Index: php4/pear/HTML/Table.php diff -u php4/pear/HTML/Table.php:1.10 php4/pear/HTML/Table.php:1.11 --- php4/pear/HTML/Table.php:1.10 Tue Nov 20 13:47:12 2001 +++ php4/pear/HTML/Table.php Tue Nov 20 14:39:02 2001 @@ -17,7 +17,7 @@ // | Bertrand Mansion <bmansion@mamasam.com> | // +----------------------------------------------------------------------+ // -// $Id: Table.php,v 1.10 2001/11/20 18:47:12 adaniel Exp $ +// $Id: Table.php,v 1.11 2001/11/20 19:39:02 adaniel Exp $ require_once "PEAR.php"; require_once "HTML/Common.php"; @@ -365,7 +365,7 @@ /** * Alternates the row attributes starting at $start - * @param int $start Row index of row in which alternatign begins + * @param int $start Row index of row in which alternating begins * @param mixed $attributes1 Associative array or string of table row attributes * @param mixed $attribute2 Associative array or string of table row attributes * @access public @@ -373,7 +373,7 @@ function altRowAttributes($start, $attributes1, $attributes2) { for ($row = $start ; $row < $this->_rows ; $row++) { - $attributes = (($row+1+$start)%2==0) ? $attributes1 : $attributes2; + $attributes = (($row+$start)%2==0) ? $attributes1 : $attributes2; $this->updateRowAttributes($row, $attributes); } } // end func altRowAttributes

« previous php.pear.cvs (#1387) next »