Home » HTML » HTML_TreeMenu » Bug #1808
Error with creating tree from XML
Details
| Submitted | 2004-07-06 18:05 UTC |
|---|---|
| From | asnagy at php dot net |
| Status | Bogus |
| Package | HTML_TreeMenu |
| PHP Version | 4.3.7 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2004-07-06 18:05 UTC] asnagy at php dot net
Description:
------------
There is a bug when creating a new tree from XML with a PEAR::XML_Tree object. In the createFromXML method there is an if statement that looks for the class 'Tree' however a PEAR::XML_Tree object is labled as 'XML_Tree'. This causes the createFromXML method to fail.
Please replace line number 261 with the following:
if (!class_exists('XML_Tree')) {
die('Could not find PEAR::XML_Tree class');
}
[2004-07-06 21:36 UTC] asnagy at php dot net
The documentation is somewhat confusing. Some places it says the Tree pear package ... someplaces it says Richards package. Very confusing.