Make sure we reference numeric values.

        Patch by kareila. 

diffs (16 lines):

diff -r 8614f9d218b5 -r 348b89a55eb4 cgi-bin/DW/Widget/ReadingList.pm
--- a/cgi-bin/DW/Widget/ReadingList.pm  Tue Jul 28 05:28:15 2009 +0000
+++ b/cgi-bin/DW/Widget/ReadingList.pm  Tue Jul 28 09:00:51 2009 -0500
@@ -32,9 +32,9 @@ sub render_body {
     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} } ) . "</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>";
+    $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>";
 
     return $ret;
 }
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to