summaryrefslogtreecommitdiff
path: root/includes/sys_template.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2016-11-05 10:06:06 +0100
committermsquare <msquare@notrademark.de>2016-11-05 10:06:06 +0100
commitcf8cc5f592d4935e857fb5434aaf00168bdcb4c5 (patch)
tree9765ae0f09aa6667e45e20240907c565d44cd152 /includes/sys_template.php
parent902866ff3a603aa2cfbbcdb5b46f0f2e840cd22c (diff)
change shift table to html5
Diffstat (limited to 'includes/sys_template.php')
-rw-r--r--includes/sys_template.php5
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) {