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 #4872

Notice caused on formatter

Details

Submitted2005-07-20 15:41 UTC
Frompupeno at pupeno dot com
Assignedolivierg
StatusClosed
PackageStructures_DataGrid
PHP Version4.3.11
OSGentoo Linux
Roadmaps(Not assigned)

Comments

[2005-07-20 15:41 UTC] pupeno at pupeno dot com

Description:
------------
If I specify a formatter in this way:

$plansTable->addColumn(new
Structures_DataGrid_Column('Type', 'type', 'type', null,
null, 'typeField()'));

defining:

function typeField($params){
global $types;
return $types[$params['record']['type']];
}

then I get this notice (which is disturbing on E_ALL):

Notice: Undefined variable:
in /usr/lib/php/Structures/DataGrid/Column.php on line 183

Thanks.

[2005-10-11 00:24 UTC] olivierg at php dot net

This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should be live shortly.

Otherwise, the fix will appear in the package's next release.

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