Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.1.1

Bug #2787 getMedia method typo
Submitted: 2004-11-18 16:15 UTC
From: jude at widearea dot co dot uk Assigned: polone
Status: Closed Package: XML_NITF
PHP Version: 4.3.9 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2004-11-18 16:15 UTC] jude at widearea dot co dot uk
Description: ------------ In method getMedia the FOREACH specified $aMediaElement but the IF statement uses $aMediaElem. Reproduce code: --------------- foreach($this->m_aMedia as $aMediaElement) { if (isset($aMediaElem[$sProperty])) { array_push($aMediaRefs, $aMediaElem[$sProperty]); } } should be foreach($this->m_aMedia as $aMediaElem) { if (isset($aMediaElem[$sProperty])) { array_push($aMediaRefs, $aMediaElem[$sProperty]); } }

Comments

 [2004-11-29 15:54 UTC] polone
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. I have fixed the problem in CVS - new release is coming.