]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - ikiwiki
foo
[git.ikiwiki.info.git] / ikiwiki
diff --git a/ikiwiki b/ikiwiki
index b9acc10b5117f5233b5e6e96bad06a29c8f834db..129076f759403a4d875514f991ac94c5f756571d 100755 (executable)
--- a/ikiwiki
+++ b/ikiwiki
@@ -397,7 +397,7 @@ sub rcs_recentchanges ($) {
                                $when=concise(ago(time - str2time($3)));
                        }
                        elsif ($state eq 'header' && /^\s+[A-Z]\s+\Q$svn_base\E\/(.+)$/) {
                                $when=concise(ago(time - str2time($3)));
                        }
                        elsif ($state eq 'header' && /^\s+[A-Z]\s+\Q$svn_base\E\/(.+)$/) {
-                               push @pages, pagename($1);
+                               push @pages, pagename($1) if length $1;
                        }
                        elsif ($state eq 'header' && /^$/) {
                                $state='body';
                        }
                        elsif ($state eq 'header' && /^$/) {
                                $state='body';
@@ -405,7 +405,7 @@ sub rcs_recentchanges ($) {
                        elsif ($state eq 'body' && /$div/) {
                                push @ret, { rev => $rev, user => $user,
                                        when => $when, message => $message,
                        elsif ($state eq 'body' && /$div/) {
                                push @ret, { rev => $rev, user => $user,
                                        when => $when, message => $message,
-                                       pages => [@pages] };
+                                       pages => [@pages] } if @pages;
                                return @ret if @ret >= $num;
                                
                                $state='header';
                                return @ret if @ret >= $num;
                                
                                $state='header';