From 745ce4eee3dd728d1ceac19a7d2af1e67329f2d4 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Mon, 25 Mar 2013 22:53:58 -0400 Subject: v4: param, guard against situation where no document creator/author given --- lib/sisu/v4/param.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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}" : '' -- cgit v1.2.3