diff options
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/wiki_page.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/wiki_page.rb b/app/models/wiki_page.rb index 9ac19971f..02b7044da 100644 --- a/app/models/wiki_page.rb +++ b/app/models/wiki_page.rb @@ -328,10 +328,10 @@ class WikiAnnotate break unless @lines.detect { |line| line[0].nil? } current = current.previous end - @lines.each { |line| + @lines.each do |line| line[0] ||= current.version # if the last known version is > 1 (eg. history was cleared), we don't know the author line[1] ||= current.author if current.version == 1 - } + end end end |