diff options
author | msquare <msquare@notrademark.de> | 2016-11-05 10:06:06 +0100 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2016-11-05 10:06:06 +0100 |
commit | cf8cc5f592d4935e857fb5434aaf00168bdcb4c5 (patch) | |
tree | 9765ae0f09aa6667e45e20240907c565d44cd152 /includes/sys_template.php | |
parent | 902866ff3a603aa2cfbbcdb5b46f0f2e840cd22c (diff) |
change shift table to html5
Diffstat (limited to 'includes/sys_template.php')
-rw-r--r-- | includes/sys_template.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/includes/sys_template.php b/includes/sys_template.php index 9bede1ee..6c1727a4 100644 --- a/includes/sys_template.php +++ b/includes/sys_template.php @@ -42,8 +42,11 @@ function glyph_bool($boolean) { } function div($class, $content = [], $dom_id = "") { + if (is_array($content)) { + $content = join("\n", $content); + } $dom_id = $dom_id != '' ? ' id="' . $dom_id . '"' : ''; - return '<div' . $dom_id . ' class="' . $class . '">' . join("\n", $content) . '</div>'; + return '<div' . $dom_id . ' class="' . $class . '">' . $content . '</div>'; } function heading($content, $number = 1) { |