From 7c41a378ee282fb43b285b66283160686e7cb5ca Mon Sep 17 00:00:00 2001 From: Stephen Jones Date: Wed, 23 May 2018 11:12:07 -0500 Subject: [PATCH] PHP 7.2 fixed string offset and undefined constant --- src/usr/local/www/vpn_openvpn_client.php | 2 +- src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/usr/local/www/vpn_openvpn_client.php b/src/usr/local/www/vpn_openvpn_client.php index c554c44544..01345e74a9 100644 --- a/src/usr/local/www/vpn_openvpn_client.php +++ b/src/usr/local/www/vpn_openvpn_client.php @@ -588,7 +588,7 @@ if ($act=="new" || $act=="edit"): $section->addInput(new Form_Input( 'proxy_port', 'Proxy port', - number, + 'number', $pconfig['proxy_port'] )); diff --git a/src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php b/src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php index e2110fede4..fa0ffce42e 100644 --- a/src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php +++ b/src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php @@ -45,6 +45,10 @@ if (!function_exists('get_dyndns_hostname_text')) { } } +if (!is_array($config['dyndnses'])) { + $config['dyndnses'] = array(); +} + if (!is_array($config['dyndnses']['dyndns'])) { $config['dyndnses']['dyndns'] = array(); }