diff --git a/application/models/ISO19115.php b/application/models/ISO19115.php index 69d4033a..67e45f0a 100755 --- a/application/models/ISO19115.php +++ b/application/models/ISO19115.php @@ -209,7 +209,7 @@ class ISO19115 //处理在线资源 if ($this->onlineresource) foreach($this->onlineresource as $resource) { - if (isset($resource['name']) && resource['name']) + if (isset($resource['name']) && $resource['name']) { $sql="insert into onlineresource (uuid,linkage,protocol,name,description) values(?,?,?,?,?)"; $db->query($sql,array($this->uuid,$resource['linkage'],$resource['protocol'],$resource['name'],$resource['description']));