fix parse error

This commit is contained in:
wlx 2013-05-20 07:20:14 +00:00
parent 54ea3edac5
commit 2359a99ded
1 changed files with 1 additions and 1 deletions

View File

@ -559,7 +559,7 @@ class ISO19115
}
}
//resRefDate
$refdates=$this->dom->getElementsByTagName('resRefDate');
$refdates=$this->dom->getElementsByTagName('resRefDate')->item(0)->nodeValue;
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")