取消提交后的只读处理,减少错误处理

This commit is contained in:
wlx 2012-10-31 04:29:34 +00:00
parent 4e42811648
commit d26a1b258b
1 changed files with 2 additions and 2 deletions

View File

@ -465,7 +465,7 @@ class HeiheController extends DataController
$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();
@ -509,7 +509,7 @@ class HeiheController extends DataController
if(!empty($row1['passwd']))
{
$old=umask(0);
$this->chmodr($row1['homedir'],0444);
//$this->chmodr($row1['homedir'],1444);
umask($old);
}