Skip to content

Commit

Permalink
(crashreport) missing type check, referenced #1393
Browse files Browse the repository at this point in the history
  • Loading branch information
AdSchellevis committed Feb 13, 2017
1 parent eacf920 commit 0327622
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/www/vpn_ipsec_phase1.php
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,9 @@ function ipsec_ikeid_next() {
$ph1ent[$fieldname] = $pconfig[$fieldname];
}
}
$ph1ent['authservers'] = implode(',', $pconfig['authservers']);
if (!empty($pconfig['authservers'])) {
$ph1ent['authservers'] = implode(',', $pconfig['authservers']);
}

$ph1ent['disabled'] = !empty($pconfig['disabled']) ? true : false;
$ph1ent['private-key'] =isset($pconfig['privatekey']) ? base64_encode($pconfig['privatekey']) : null;
Expand Down

0 comments on commit 0327622

Please sign in to comment.