Commit 9bb5e690 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) fix for PHP Warning: Illegal string offset 'radius' in...

(legacy) fix for  PHP Warning:  Illegal string offset 'radius' in /usr/local/www/vpn_l2tp.php on line 37
parent a4317887
...@@ -34,7 +34,7 @@ require_once("vpn.inc"); ...@@ -34,7 +34,7 @@ require_once("vpn.inc");
require_once("pfsense-utils.inc"); require_once("pfsense-utils.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
if (!is_array($config['l2tp']['radius'])) { if (!isset($config['l2tp']['radius']) || !is_array($config['l2tp']['radius'])) {
$config['l2tp']['radius'] = array(); $config['l2tp']['radius'] = array();
} }
$l2tpcfg = &$config['l2tp']; $l2tpcfg = &$config['l2tp'];
......
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