Home » XML » XML_NITF » Bug #2787
getMedia method typo
Details
| 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) |
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]);
}
}