diff --git a/usr/local/www/status_wireless.php b/usr/local/www/status_wireless.php index 641800eea4..91afc36e0d 100755 --- a/usr/local/www/status_wireless.php +++ b/usr/local/www/status_wireless.php @@ -111,14 +111,16 @@ display_top_tabs($tab_array); $state_fixed = str_replace(" ", " ", $state_fixed); $state_fixed = str_replace(" ", " ", $state_fixed); $state_split = split(" ", $state_fixed); + $items = count($state_split); + $starting_at = $items-8; print ""; - print "{$state_split[0]}"; - print "{$state_split[1]}"; - print "{$state_split[2]}"; - print "{$state_split[3]}"; - print "{$state_split[4]}"; - print "{$state_split[5]}"; - print "{$state_split[6]}"; + print "{$state_split[$starting_at]}"; + print "{$state_split[$starting_at+1]}"; + print "{$state_split[$starting_at+2]}"; + print "{$state_split[$starting_at+3]}"; + print "{$state_split[$starting_at+4]}"; + print "{$state_split[$starting_at+5]}"; + print "{$state_split[$starting_at+6]}"; print "\n"; print "\n"; }