Commit 3fa42ebf authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(legacy) fix some more warnings

parent 0e9d816a
......@@ -1374,7 +1374,7 @@ function vpn_l2tp_configure()
@mkdir('/var/etc/l2tp-vpn');
switch ($l2tpcfg['mode']) {
switch (isset($l2tpcfg['mode'])?$l2tpcfg['mode']:null) {
case 'server' :
if ($l2tpcfg['paporchap'] == "chap")
......
......@@ -32,7 +32,8 @@ $shortcut_section = "l2tps";
require_once("guiconfig.inc");
require_once("vpn.inc");
if (!is_array($config['l2tp']['user'])) {
if (!isset($config['l2tp']['user'])) {
$config['l2tp']['user'] = array();
}
$a_secret = &$config['l2tp']['user'];
......
......@@ -668,7 +668,7 @@ endforeach; ?>
<option value="servermagic" >Automagic Multi-WAN IPs (port forward targets)</option>
<option value="servermagichost" >Automagic Multi-WAN DDNS Hostnames (port forward targets)</option>
<option value="serverhostname" >Installation hostname</option>
<?php if (is_array($config['dyndnses']['dyndns'])) :
<?php if (isset($config['dyndnses']['dyndns'])) :
?>
<?php foreach ($config['dyndnses']['dyndns'] as $ddns) :
?>
......@@ -677,7 +677,7 @@ endforeach; ?>
endforeach; ?>
<?php
endif; ?>
<?php if (is_array($config['dnsupdates']['dnsupdate'])) :
<?php if (isset($config['dnsupdates']['dnsupdate'])) :
?>
<?php foreach ($config['dnsupdates']['dnsupdate'] as $ddns) :
?>
......
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