aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v4
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2013-03-25 22:53:58 -0400
committerRalph Amissah <ralph@amissah.com>2013-03-25 22:55:55 -0400
commit745ce4eee3dd728d1ceac19a7d2af1e67329f2d4 (patch)
tree99629e8543214e4775704f24b5839cc66d01906c /lib/sisu/v4
parentv4: sysenv, copy or create homepages, one of the actions taken on --config (diff)
v4: param, guard against situation where no document creator/author given
Diffstat (limited to 'lib/sisu/v4')
-rw-r--r--lib/sisu/v4/param.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sisu/v4/param.rb b/lib/sisu/v4/param.rb
index 360625e4..035697c9 100644
--- a/lib/sisu/v4/param.rb
+++ b/lib/sisu/v4/param.rb
@@ -1154,7 +1154,8 @@ module SiSU_Param
tf="@title: #{tf}"
@title=SiSU_Param::Parameters::Md.new(tf.strip,@opt,@env).title
end
- creator=(defined? @creator.author \
+ creator=(@creator.is_a?(SiSU_Param::Parameters::Md) \
+ && defined? @creator.author \
&& @creator.author.is_a?(String)) \
? " #{@creator.author}"
: ''