Commit aef8f669 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) fix some more warnings

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