mirror of
https://github.com/webmin/webmin.git
synced 2025-07-23 00:30:33 +00:00
Show arrays nicely
This commit is contained in:
@ -24,7 +24,9 @@ else {
|
||||
if (@data) {
|
||||
print &ui_columns_start($d->{'titles'});
|
||||
foreach $r (@data) {
|
||||
print &ui_columns_row($r);
|
||||
@prow = map { ref($_) eq 'ARRAY' ? join(", ", @$_)
|
||||
: $_ } @$r;
|
||||
print &ui_columns_row(\@prow);
|
||||
}
|
||||
print &ui_columns_end();
|
||||
}
|
||||
|
Reference in New Issue
Block a user