phplist

NOTE:: Before reporting an issue, make sure you are running the latest version, currently 3.3.1


View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0016681phplist applicationOtherpublic04-09-12 09:3312-11-12 19:44
Reporterduncanc 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version2.11.7 
Target Version2.11.8Fixed in Version2.11.8 
Summary0016681: static method call on instance method
DescriptionIn interface.php this line 393 causes an E_STRICT error because cmp() is an instance method, not a static method.

      usort($this->elements,array("WebblerListing","cmp"));

To avoid the error, the line should be
      usort($this->elements,array($this,"cmp"));
Similarly for line 396.

This is preferable to making cmp() a static method because it allows the WebblerListing class to be sub-classed and the method over-ridden. I have been doing that in order to allow case-insensitive sorting.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker