[Jifty-commit] r4947 - in jifty/trunk: lib/Jifty/Plugin/REST
Jifty commits
jifty-commit at lists.jifty.org
Sat Jan 26 20:16:18 EST 2008
Author: sartak
Date: Sat Jan 26 20:16:16 2008
New Revision: 4947
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Plugin/REST/Dispatcher.pm
Log:
r50946 at onn: sartak | 2008-01-26 20:14:41 -0500
REST: bug in some old code: if (ref $x eq 'ARRAY') { %$x }
Modified: jifty/trunk/lib/Jifty/Plugin/REST/Dispatcher.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/REST/Dispatcher.pm (original)
+++ jifty/trunk/lib/Jifty/Plugin/REST/Dispatcher.pm Sat Jan 26 20:16:16 2008
@@ -322,7 +322,7 @@
sub html_dump {
my $content = shift;
if (ref($content) eq 'ARRAY') {
- if (keys %$content) {
+ if (@$content) {
return ul(map {
li(html_dump($_))
} @{$content});
More information about the Jifty-commit
mailing list