From 043e5606ee332ad389382626abfb2f2e538a72ca Mon Sep 17 00:00:00 2001 From: Ryan Wagoner Date: Wed, 8 Nov 2006 00:34:54 +0000 Subject: fixed syslog warning message when no interfaces selected --- packages/miniupnpd/miniupnpd.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/miniupnpd/miniupnpd.inc b/packages/miniupnpd/miniupnpd.inc index b27516f0..149aac20 100644 --- a/packages/miniupnpd/miniupnpd.inc +++ b/packages/miniupnpd/miniupnpd.inc @@ -67,7 +67,8 @@ config_lock(); /* since config is written before this file invoked we don't need to read post data */ - $iface_array = explode(",",upnp_config("iface_array")); + if(upnp_config("iface_array")) + $iface_array = explode(",",upnp_config("iface_array")); if($iface_array) { foreach($iface_array as $iface) { -- cgit v1.2.3