fixing bug with nameless entry when no macs available
This commit is contained in:
parent
1e394ded75
commit
1e472392e7
4
macs.php
4
macs.php
|
@ -36,5 +36,9 @@ function translator($mac) {
|
||||||
|
|
||||||
$macs = macs_get();
|
$macs = macs_get();
|
||||||
$macs = array_map("translator", $macs);
|
$macs = array_map("translator", $macs);
|
||||||
|
if (count($macs) > 0) {
|
||||||
echo '["'.implode('", "', $macs).'"]';
|
echo '["'.implode('", "', $macs).'"]';
|
||||||
|
} else {
|
||||||
|
echo '[]';
|
||||||
|
}
|
||||||
macs_purge();
|
macs_purge();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user