(legacy) fix some more warnings

This commit is contained in:
Ad Schellevis 2015-07-24 09:28:04 +00:00
parent 4873aed105
commit aef8f66977
3 changed files with 5 additions and 4 deletions

View File

@ -1370,7 +1370,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")

View File

@ -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'];

View File

@ -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) :
?>