diff --git a/app/Controller/UserController.php b/app/Controller/UserController.php index 210b366..9c07da3 100755 --- a/app/Controller/UserController.php +++ b/app/Controller/UserController.php @@ -86,7 +86,7 @@ class UserController extends AppController { $this->set('page',$page); if(!$hard_error) if($company){ - $openings = $this->DreamjobJobOpening->find('all',array('conditions' => array('DreamjobJobOpening.company_id' => $profil['AppUser']['id']))); + $openings = $this->DreamjobJobOpening->find('all',array('conditions' => array('DreamjobJobOpening.company_id' => $profil['AppUser']['id'],'DreamjobJobOpening.active'=>1))); $this->set("openings",$openings); $this->render('/User/company'); }else diff --git a/app/View/Errors/pdo_error.ctp b/app/View/Errors/pdo_error.ctp new file mode 100644 index 0000000..c6a96a3 --- /dev/null +++ b/app/View/Errors/pdo_error.ctp @@ -0,0 +1,8 @@ + +