mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-18 02:25:05 +00:00
(legacy) fix some more warnings
This commit is contained in:
parent
4873aed105
commit
aef8f66977
@ -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")
|
||||
|
||||
@ -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) :
|
||||
?>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user