fix parse error
This commit is contained in:
parent
2359a99ded
commit
526c8b4c88
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue