diff --git a/application/default/controllers/HeiheController.php b/application/default/controllers/HeiheController.php index 8d9df31e..b59fbd44 100644 --- a/application/default/controllers/HeiheController.php +++ b/application/default/controllers/HeiheController.php @@ -809,7 +809,7 @@ class HeiheController extends DataController { $this->_helper->viewRenderer('project-index'); - $sql = "SELECT * FROM heiheproject WHERE attachid IS NULL OR attachid=0"; + $sql = "SELECT * FROM heiheproject WHERE status=0"; $sth = $this->db->query($sql); $rows = $sth->fetchAll();