[dw-free] http://bugs.dwscoalition.org/show_bug.cgi?id=3331
[commit: http://hg.dwscoalition.org/dw-free/rev/8217d6186bde]
http://bugs.dwscoalition.org/show_bug.cgi?id=3331
Fix warnings.
Patch by
kareila.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=3331
Fix warnings.
Patch by
Files modified:
- cgi-bin/DW/Widget/ReadingList.pm
--------------------------------------------------------------------------------
diff -r 22de99a4d38e -r 8217d6186bde cgi-bin/DW/Widget/ReadingList.pm
--- a/cgi-bin/DW/Widget/ReadingList.pm Tue Jan 04 10:36:32 2011 +0800
+++ b/cgi-bin/DW/Widget/ReadingList.pm Tue Jan 04 10:39:58 2011 +0800
@@ -25,16 +25,16 @@ sub render_body {
my $remote = LJ::get_remote()
or return;
- my %count;
+ my %count = ( personal => 0, community => 0, syndicated => 0 );
my @watched = $remote->watched_users;
$count{$_->journaltype_readable}++ foreach @watched;
my $ret = "<h2>" . $class->ml( 'widget.readinglist.title' ) . "</h2>";
$ret .= "<p>" . $class->ml( 'widget.readinglist.readpage', { aopts => "href='" . $remote->journal_base. "/read'" } ) . "</p>";
$ret .= "<p>" . $class->ml( 'widget.readinglist.breakdown.header' ) . "</p>";
- $ret .= "<ul><li>" . $class->ml( 'widget.readinglist.breakdown.personal', { num => $count{personal} + 0 } ) . "</li>";
- $ret .= "<li>" . $class->ml( 'widget.readinglist.breakdown.communities', { num => $count{community} + 0 } ) . "</li>";
- $ret .= "<li>" . $class->ml( 'widget.readinglist.breakdown.feeds', { num => $count{syndicated} + 0 } ) . "</li></ul><br />";
+ $ret .= "<ul><li>" . $class->ml( 'widget.readinglist.breakdown.personal', { num => $count{personal} } ) . "</li>";
+ $ret .= "<li>" . $class->ml( 'widget.readinglist.breakdown.communities', { num => $count{community} } ) . "</li>";
+ $ret .= "<li>" . $class->ml( 'widget.readinglist.breakdown.feeds', { num => $count{syndicated} } ) . "</li></ul><br />";
my @filters = $remote->content_filters;
--------------------------------------------------------------------------------
