From: Joey Hess Date: Mon, 17 May 2010 21:06:13 +0000 (-0400) Subject: force scalar context X-Git-Tag: 3.20100518~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=facc77e10925301575b46d26e031c9f6914edafb;p=ikiwiki.git force scalar context --- diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm index 3cafcbe9c..eb861d74f 100644 --- a/IkiWiki/Plugin/comments.pm +++ b/IkiWiki/Plugin/comments.pm @@ -859,7 +859,7 @@ sub num_comments ($$) { my $dir=shift; my @comments=glob("$dir/$page/$config{comments_pagename}*._comment"); - return @comments; + return int @comments; } sub unique_comment_location ($$$$) {