Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/issuetemplate.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/DetailManager.php')
-rw-r--r--lib/DetailManager.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/DetailManager.php b/lib/DetailManager.php
index 874dad4..8bba6c5 100644
--- a/lib/DetailManager.php
+++ b/lib/DetailManager.php
@@ -55,6 +55,9 @@ class DetailManager {
* @param int $type
*/
public function createDetail($sectionIdentifier, $title, $information, $type = IDetail::TYPE_MULTI_LINE_PREFORMAT) {
+ if (!is_string($information)) {
+ $information = print_r($information, true);
+ }
$detail = new Detail($sectionIdentifier, $title, $information, $type);
/** @var ISection $sectionObject */
$sectionObject = $this->sections[$sectionIdentifier];