diff --git a/macs.php b/macs.php index 91f50a5..4693420 100644 --- a/macs.php +++ b/macs.php @@ -36,5 +36,9 @@ function translator($mac) { $macs = macs_get(); $macs = array_map("translator", $macs); -echo '["'.implode('", "', $macs).'"]'; +if (count($macs) > 0) { + echo '["'.implode('", "', $macs).'"]'; +} else { + echo '[]'; +} macs_purge();