fix parse error

This commit is contained in:
wlx 2013-05-20 07:23:18 +00:00
parent 2359a99ded
commit 526c8b4c88
1 changed files with 2 additions and 2 deletions

View File

@ -559,12 +559,12 @@ class ISO19115
}
}
//resRefDate
$refdates=$this->dom->getElementsByTagName('resRefDate')->item(0)->nodeValue;
$refdates=$this->dom->getElementsByTagName('resRefDate');
foreach($refdates as $refdate)
{
if ($refdate->getElementsByTagName('DateTypCd')->item(0) && $refdate->getElementsByTagName('DateTypCd')->item(0)->hasAttributes() && $refdate->getElementsByTagName('DateTypCd')->item(0)->attributes->getNamedItem('value')->nodeValue=="publication")
{
$this->refDate=$refdate->getElementsByTagName('refDate');
$this->refDate=$refdate->getElementsByTagName('refDate')->item(0)->nodeValue;
}
}
//in ISO 19115 draft.