force scalar context
authorJoey Hess <joey@kitenet.net>
Mon, 17 May 2010 21:06:13 +0000 (17:06 -0400)
committerJoey Hess <joey@kitenet.net>
Mon, 17 May 2010 21:06:13 +0000 (17:06 -0400)
IkiWiki/Plugin/comments.pm

index 3cafcbe9c6860dbfb95087da454bf364617f1292..eb861d74fbd1206476c74387ba1bd2fba694775f 100644 (file)
@@ -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 ($$$$) {