Skip to content

Commit

Permalink
Update qso.php
Browse files Browse the repository at this point in the history
Make array declarations php v5.3 friendly!
  • Loading branch information
teabreakninja committed Jan 18, 2016
1 parent b750276 commit c824c07
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions application/controllers/qso.php
Expand Up @@ -47,14 +47,17 @@ public function index()
// This solves the problem of CI dumping out the session
// cookie each time set_userdata is called.
// For more info, see http://bizhole.com/codeigniter-nginx-error-502-bad-gateway/
$qso_data = [
// $qso_data = [
// 18-Jan-2016 - make php v5.3 friendly!
$sqo_data = array(
'band' => $this->input->post('band'),
'freq' => $this->input->post('freq'),
'mode' => $this->input->post('mode'),
'sat_name' => $this->input->post('sat_name'),
'sat_mode' => $this->input->post('sat_mode'),
'radio' => $this->input->post('radio')
];
);
// ];

$this->session->set_userdata($qso_data);

Expand Down Expand Up @@ -111,14 +114,17 @@ public function manual()
$this->logbook_model->create_qso();

// Store Basic QSO Info for reuse
$qso_data = [
//$qso_data = [
// 18-Jan-2016 - make php v5.3 friendly!
$qso_data = array(
'band' => $this->input->post('band'),
'freq' => $this->input->post('freq'),
'mode' => $this->input->post('mode'),
'sat_name' => $this->input->post('sat_name'),
'sat_mode' => $this->input->post('sat_mode'),
'radio' => $this->input->post('radio')
];
);
//];

$this->session->set_userdata($qso_data);

Expand Down

0 comments on commit c824c07

Please sign in to comment.