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); }