diff options
author | Joey Hess <joey@kitenet.net> | 2010-05-17 17:06:13 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-05-17 17:06:13 -0400 |
commit | facc77e10925301575b46d26e031c9f6914edafb (patch) | |
tree | 87a34ba5d00dd9437217e17195d504f17d63775e /IkiWiki | |
parent | 47bc6105326ce76327f2accb6d6ae34d2cb1429e (diff) |
force scalar context
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/comments.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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 ($$$$) { |