Skip to content

Instantly share code, notes, and snippets.

@Fayozjon
Created August 15, 2017 13:06
Show Gist options
  • Save Fayozjon/3325134bf3e9b1352036898c9d629e76 to your computer and use it in GitHub Desktop.
Save Fayozjon/3325134bf3e9b1352036898c9d629e76 to your computer and use it in GitHub Desktop.
issue
if(isset($data['main'])){
$this->session->main = $data['main'];
if($data['step']){
$_SESSION['step'] = $data['step'];
}
if($this->session->main['marital_status']!==2 || $this->session->main['marital_status']!==3){
if($data['step']==2){
$data['step']=3;
$_SESSION['step'] = 3;
}
}
if($_SESSION['step']==3 && $this->session->main['childs']==0){
if($data['step']!==1){
$data['step']="finish";
$_SESSION['step'] = "finish";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment