PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » XML » XML_NITF » Bug #2787

getMedia method typo

Details

Submitted2004-11-18 16:15 UTC
Fromjude at widearea dot co dot uk
Assignedpolone
StatusClosed
PackageXML_NITF
PHP Version4.3.9
OSLinux
Roadmaps(Not assigned)

Comments

[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]);

}
}