diff options
author | Julius Härtl <jus@bitgrid.net> | 2017-11-27 12:50:39 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2017-11-27 12:51:02 +0300 |
commit | c2dff8c5a36eed75cf48a3a364aa8e23153ed2dd (patch) | |
tree | 358469fe3d4f3ad516b3ae5999ed379a553b78d3 /lib/Section.php | |
parent | cd359d9d9314a8976892fc3b6b1de1a58575877e (diff) |
Force string for information detail possible fix for #36
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/Section.php')
-rw-r--r-- | lib/Section.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Section.php b/lib/Section.php index 10c0201..05ffeee 100644 --- a/lib/Section.php +++ b/lib/Section.php @@ -69,6 +69,9 @@ class Section implements ISection { * @inheritdoc */ public function createDetail($title, $information, $type = IDetail::TYPE_SINGLE_LINE) { + if (!is_string($information)) { + $information = print_r($information, true); + } $detail = new Detail($this->getIdentifier(), $title, $information, $type); $this->addDetail($detail); return $detail; |