summaryrefslogtreecommitdiff
path: root/httemplate/misc/maestro-customer_status-test.html
diff options
context:
space:
mode:
authorivan <ivan>2010-07-27 01:57:05 +0000
committerivan <ivan>2010-07-27 01:57:05 +0000
commit07da9c4c33b9ff573780052fc8994b492bb7bafb (patch)
treee8518340e13f5ee7246d365af2edf8a900a2fba8 /httemplate/misc/maestro-customer_status-test.html
parentd0cfae64ac8c44a379b0f64e4f47a678ecd8fe77 (diff)
better pretty-printing for array values
Diffstat (limited to 'httemplate/misc/maestro-customer_status-test.html')
-rw-r--r--httemplate/misc/maestro-customer_status-test.html10
1 files changed, 6 insertions, 4 deletions
diff --git a/httemplate/misc/maestro-customer_status-test.html b/httemplate/misc/maestro-customer_status-test.html
index 16d4b5728..a75b88acb 100644
--- a/httemplate/misc/maestro-customer_status-test.html
+++ b/httemplate/misc/maestro-customer_status-test.html
@@ -7,10 +7,12 @@
<table style="border:1px solid #000000">
% foreach my $key (keys %$return) {
- <TR>
- <TD ALIGN="right"><% $key %>:</TD>
- <TD><B><% $return->{$key} %></B></TD>
- </TR>
+% my $value = $return->{$key};
+% $value = join(', ', @$value) if ref($value) eq 'ARRAY';
+ <TR>
+ <TD ALIGN="right"><% $key %>:</TD>
+ <TD><B><% $return->{$key} %></B></TD>
+ </TR>
% }
</table>