加强uuid判断

This commit is contained in:
wlx 2012-06-12 10:21:13 +00:00
parent 77282a198e
commit 61539992be
1 changed files with 2 additions and 2 deletions

View File

@ -543,8 +543,8 @@ class ISO19115
} }
//根据mdFileID来判断uuid //根据mdFileID来判断uuid
//如果mdFileID为uuid的组织形式则进行提取 //如果mdFileID为uuid的组织形式则进行提取
if (strlen($this->mdFileID)==36 && empty($this->uuid)) if (strlen(trim($this->mdFileID))==36 && empty($this->uuid))
$this->uuid=$this->mdFileID; $this->uuid=trim($this->mdFileID);
//仍然没有UUID信息则创建一个 //仍然没有UUID信息则创建一个
if (empty($this->uuid)) if (empty($this->uuid))
{ {