From d26a1b258b6120cffb7c60444644620e4bc524dd Mon Sep 17 00:00:00 2001 From: wlx Date: Wed, 31 Oct 2012 04:29:34 +0000 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E6=8F=90=E4=BA=A4=E5=90=8E?= =?UTF-8?q?=E7=9A=84=E5=8F=AA=E8=AF=BB=E5=A4=84=E7=90=86=EF=BC=8C=E5=87=8F?= =?UTF-8?q?=E5=B0=91=E9=94=99=E8=AF=AF=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/default/controllers/HeiheController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/default/controllers/HeiheController.php b/application/default/controllers/HeiheController.php index 2e32369c..dad9db02 100644 --- a/application/default/controllers/HeiheController.php +++ b/application/default/controllers/HeiheController.php @@ -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); }