From 12e057fab7d10c1b52c1fd0e8323efafd5b1603d Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Tue, 29 Dec 2015 20:26:16 +0100 Subject: [PATCH] (legacy) PHP Notice: Undefined index: localip in /usr/local/etc/inc/interfaces.inc on line 1606 --- src/etc/inc/interfaces.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc index 19979b090..a50b422d9 100644 --- a/src/etc/inc/interfaces.inc +++ b/src/etc/inc/interfaces.inc @@ -1603,9 +1603,9 @@ function interface_ppps_configure($interface) } } } - $localips = explode(',', $ppp['localip']); - $gateways = explode(',', $ppp['gateway']); - $subnets = explode(',', $ppp['subnet']); + $localips = isset($ppp['localip']) ? explode(',', $ppp['localip']) : array(); + $gateways = isset($ppp['gateway']) ? explode(',', $ppp['gateway']) : array(); + $subnets = isset($ppp['subnet']) ? explode(',', $ppp['subnet']) : array(); /* We bring up the parent interface first because if DHCP is configured on the parent we need * to obtain an address first so we can write it in the mpd .conf file for PPTP and L2TP configs