Commit 4b5c80b9 authored by Franco Fichtner's avatar Franco Fichtner

interfaces: fix wlan probe to not yield an empty interface

parent 70c502ba
...@@ -34,7 +34,7 @@ function legacy_interface_listget($flag = '') ...@@ -34,7 +34,7 @@ function legacy_interface_listget($flag = '')
$ifs = null; $ifs = null;
exec($cmd_wlan . ' 2>&1', $out_wlan, $ret_wlan); 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]); $ifs_wlan = explode(' ', $out_wlan[0]);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment