change limitation

This commit is contained in:
wlx 2013-04-26 08:08:31 +00:00
parent 33d84305fc
commit 3130e6f665
1 changed files with 4 additions and 4 deletions

View File

@ -128,7 +128,7 @@ class SubmitController extends Zend_Controller_Action
$sql="select gn.id from geonetworkmetadata gn
left join mdstatus s on gn.uuid=s.uuid
left join mdauthor a on s.uuid=a.uuid
where s.id is not null and a.id is not null and gn.id=?";
where (s.id is not null or a.id is not null) and gn.id=?";
$sth=$this->db->prepare($sql);
$sth->execute(array($id));
$row=$sth->fetch();