Home » Structures » Structures_DataGrid » Bug #2003
Undefined variable:
Details
| Submitted | 2004-07-28 05:23 UTC |
|---|---|
| From | worker at mompopmedia dot com |
| Assigned | asnagy |
| Status | No Feedback |
| Package | Structures_DataGrid |
| PHP Version | 5.0.0 |
| OS | Mandrake 10 |
| Roadmaps | (Not assigned) |
Comments
[2004-07-28 05:23 UTC] worker at mompopmedia dot com
Description:
------------
I'm getting the following notices:
[Notice][Undefined variable: ][FILE: /lib/Structures/DataGrid/Column.php][LINE: 184]
Is this a typo:
$paramList[$param] = $$param;
Shoud it be:
$paramList[$param] = $param;
?
[2004-07-29 13:27 UTC] asnagy at webitecture dot org
No, this is not a typo, but I will look into how to prevent the warnings.
[2004-08-02 00:50 UTC] asnagy at webitecture dot org
Im having trouble finding the reason for an undefined variable. Could you have an extra comma in your paramters of the function you are passing? Are you passing a variable that is not defined elsewhere?
Please send me the code that you are using so i can pin point the problem.
[2004-10-22 15:02 UTC] asnagy at webitecture dot org
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
[2005-04-27 14:15 UTC] ej dot grace at imperial dot ac dot uk
I also see this problem with Structures_DataGrid 0.6.2.
For an example that reproduces the problem look no further than:
http://pear.php.net/manual/en/package.structures.structures-datagrid.formatter.php
Which spews loads of
Notice: Undefined variable: in
/usr/share/pear/Structures/DataGrid/Column.php on line 183
Messages.
Regards,
-ed
[2005-04-27 14:26 UTC] ej dot grace at imperial dot ac dot uk
For some reason $param can be blank (null),
changing line 184 for
if ($param != null ) {
$paramList[$param] = $$param;
}
Seems to do the trick, however I havn't anlysed the code so don't know if this is the right thing to do.
-ed