From 4b5c80b9a8a4ec40d93121c3be5502e0f9bc631e Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Thu, 9 Feb 2017 22:57:58 +0100 Subject: [PATCH] interfaces: fix wlan probe to not yield an empty interface --- src/etc/inc/interfaces.lib.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/inc/interfaces.lib.inc b/src/etc/inc/interfaces.lib.inc index 1b5e4eb4f..efc1f1322 100644 --- a/src/etc/inc/interfaces.lib.inc +++ b/src/etc/inc/interfaces.lib.inc @@ -34,7 +34,7 @@ function legacy_interface_listget($flag = '') $ifs = null; exec($cmd_wlan . ' 2>&1', $out_wlan, $ret_wlan); - if (!$ret_wlan && isset($out_wlan[0])) { + if (!$ret_wlan && !empty($out_wlan[0])) { $ifs_wlan = explode(' ', $out_wlan[0]); }