mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 19:15:22 +00:00
interfaces: fix wlan probe to not yield an empty interface
This commit is contained in:
parent
70c502ba51
commit
4b5c80b9a8
@ -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]);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user