Home » Structures » Structures_DataGrid » Bug #3088
Call to $this in static method.
Details
| Submitted | 2005-01-03 22:02 UTC |
|---|---|
| From | jason at greenhell dot com |
| Assigned | asnagy |
| Status | Closed |
| Package | Structures_DataGrid |
| PHP Version | 5.0.2 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2005-01-03 22:02 UTC] jason at greenhell dot com
Description:
------------
In Structures_DataGrid_DataSource_Array.php, line 121, there is a call to $this->sort() in the static method staticFetch(). Since this is a statically called method, it cannot use $this reference. Instead, it should read:
Structures_DataGrid_DataSource_Array::sort($sortField, $sortDir, $ar);
Or in PHP5:
self::sort($sortField, $sortDir, $ar);
[2005-01-05 16:13 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.