diff --git a/app/Controller/RegistrationController.php b/app/Controller/RegistrationController.php index 64ce0df..7aee68c 100644 --- a/app/Controller/RegistrationController.php +++ b/app/Controller/RegistrationController.php @@ -66,7 +66,9 @@ class RegistrationController extends AppController { }else{ $this->MiconwareSession->setFlash(__('dreamjob.agb.error.notAccept'),'flash',array('alert'=>'danger')); } - } + }else + if(empty($this->request->data['DreamjobCompany']['website'])) + $this->request->data['DreamjobCompany']['website'] ='http://'; $this->set('result',$regResult); $this->set('cities',$this->DreamjobListCity->find('list')); $this->set('branches',$this->DreamjobListBranch->find('list')); diff --git a/app/Controller/UserController.php b/app/Controller/UserController.php index 7324ac7..e3ff1c1 100755 --- a/app/Controller/UserController.php +++ b/app/Controller/UserController.php @@ -295,6 +295,8 @@ class UserController extends AppController { } } + if(empty($profil['DreamjobCompany']['website'])) + $profil['DreamjobCompany']['website'] = 'http://'; $this->request->data = $profil; $this->set('profil',$profil); $this->set('graducations',$this->DreamjobListGraducation->find('list'));