cvs: php4 /pear/HTML Table.php

From: Date: Fri, 30 Mar 2001 05:30:58 +0000
Subject: cvs: php4 /pear/HTML Table.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-4907@lists.php.net to get a copy of this message
adaniel Thu Mar 29 21:30:58 2001 EDT Modified files: /php4/pear/HTML Table.php Log: minor change to toHtml Index: php4/pear/HTML/Table.php diff -u php4/pear/HTML/Table.php:1.5 php4/pear/HTML/Table.php:1.6 --- php4/pear/HTML/Table.php:1.5 Fri Mar 23 20:36:06 2001 +++ php4/pear/HTML/Table.php Thu Mar 29 21:30:58 2001 @@ -17,7 +17,7 @@ // | Bertrand Mansion <bmansion@mamasam.com> | // +----------------------------------------------------------------------+ // -// $Id: Table.php,v 1.5 2001/03/24 04:36:06 adaniel Exp $ +// $Id: Table.php,v 1.6 2001/03/30 05:30:58 adaniel Exp $ require_once "PEAR.php"; require_once "HTML/Common.php"; @@ -74,6 +74,7 @@ * @access private */ var $_nestLevel = 0; + /** * Class constructor * @param array $attributes Associative array of table tag attributes @@ -477,9 +478,7 @@ if (is_object($contents)) { if (is_subclass_of($contents, "html_common")) { $contents->setTabOffset($this->_tabOffset + 3); - if (get_class($contents) == "html_table" || is_subclass_of($contents, "html_table")) { - $contents->_nestLevel = $this->_nestLevel + 1; - } + $contents->_nestLevel = $this->_nestLevel + 1; } if (method_exists($contents, "toHtml")) { $contents = $contents->toHtml(); @@ -530,4 +529,3 @@ } // end class HTML_Table ?> -

« previous php.cvs (#4907) next »