mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-05-01 02:43 pm

[dw-free] Show all rows, not just the first.

[commit: http://hg.dwscoalition.org/dw-free/rev/fbab4cbda526]

Show all rows, not just the first.

Patch by [staff profile] mark.

Files modified:
  • htdocs/admin/pay/view.bml
--------------------------------------------------------------------------------
diff -r af1bdcc59591 -r fbab4cbda526 htdocs/admin/pay/view.bml
--- a/htdocs/admin/pay/view.bml	Fri May 01 14:33:36 2009 +0000
+++ b/htdocs/admin/pay/view.bml	Fri May 01 14:43:55 2009 +0000
@@ -67,7 +67,7 @@
                 $hr->{$_} = '<em>redacted</em>'
                     if exists $hr->{$_};
             }
-            return join( '<br />', map { "<strong>$_:</strong> $hr->{$_}" } sort keys %$hr );
+            return "<br />-----------<br />" . join( '<br />', map { "<strong>$_:</strong> $hr->{$_}" } sort keys %$hr );
         };
 
         my $dbh = LJ::get_db_writer();
@@ -79,7 +79,7 @@
 
         my $rows = [];
         push @$rows, $_
-            foreach $sth->fetchrow_hashref;
+            while $_ = $sth->fetchrow_hashref;
         return $body .= "<p>No records found.</p>"
             unless $rows && @$rows;
 
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
No Subject Icon Selected
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org