summaryrefslogtreecommitdiffstats
path: root/app/views/wiki/show.api.rsb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/wiki/show.api.rsb')
-rw-r--r--app/views/wiki/show.api.rsb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/wiki/show.api.rsb b/app/views/wiki/show.api.rsb
index 8e082e123..6165a94cc 100644
--- a/app/views/wiki/show.api.rsb
+++ b/app/views/wiki/show.api.rsb
@@ -5,7 +5,7 @@ api.wiki_page do
end
api.text @content.text
api.version @content.version
- api.author(:id => @content.author_id, :name => @content.author.name)
+ api.author(:id => @content.author_id, :name => @content.author.name) unless @content.author_id.nil?
api.comments @content.comments
api.created_on @page.created_on
api.updated_on @content.updated_on