PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Structures » Structures_DataGrid » Bug #1545

Undefined offset

Details

Submitted2004-06-02 16:47 UTC
Frommichael at mompopmedia dot com
Assignedasnagy
StatusClosed
PackageStructures_DataGrid
PHP Version5.0.0RC2 (Release Candidate 2)
OSRH9
Roadmaps(Not assigned)

Comments

[2004-06-02 16:47 UTC] michael at mompopmedia dot com

Description:
------------
Small suggestion:

line 302 of HTMLTable.php triggers an E_NOTICE error when rendoring a table with empty rows. Either an isset() or @ will do the trick:

$row = @$this->_dg->recordSet[$i];

or

if (isset($this->_dg->recordSet[$i]) ....

Thanks for the great app!

[2004-06-19 23:07 UTC] asnagy at webitecture dot org

This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pear.php.net.

In case this was a pear.php.net website problem, the change will show
up on the website in short time.

Thank you for the report, and for helping us make PEAR better.

[2004-08-10 13:00 UTC] bmansion at mamasam dot com

This isn't fixed in CVS, please reopen the bug.

Please use :

if (isset($this->_dg->recordSet[$i])) {
$row = $this->_dg->recordSet[$i];

[2004-08-10 14:02 UTC] asnagy at webitecture dot org

This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pear.php.net.

In case this was a pear.php.net website problem, the change will show
up on the website in short time.

Thank you for the report, and for helping us make PEAR better.