From 3f2aa11842945fe5a97a3695f91d91d2939bc090 Mon Sep 17 00:00:00 2001 From: wlx Date: Fri, 21 Mar 2014 01:46:29 +0000 Subject: [PATCH] fix var error --- application/models/ISO19115.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']));