Commit 24604434 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(crashreport) PHP Warning: in_array() expects parameter 2 to be array, null...

(crashreport) PHP Warning:  in_array() expects parameter 2 to be array, null given in /usr/local/www/vpn_openvpn_csc.php on line 406

(cherry picked from commit d26cbd66)
parent 9dd793d6
...@@ -73,7 +73,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -73,7 +73,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
} }
} }
// servers => array // servers => array
$pconfig['ovpn_servers'] = explode(',', $pconfig['ovpn_servers']); $pconfig['ovpn_servers'] = empty($pconfig['ovpn_servers']) ? array() : explode(',', $pconfig['ovpn_servers']);
} elseif ($_SERVER['REQUEST_METHOD'] === 'POST') { } elseif ($_SERVER['REQUEST_METHOD'] === 'POST') {
$input_errors = array(); $input_errors = array();
$pconfig = $_POST; $pconfig = $_POST;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment