summaryrefslogtreecommitdiff
path: root/includes/sys_template.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2016-10-04 18:11:26 +0200
committermsquare <msquare@notrademark.de>2016-10-04 18:11:26 +0200
commit676f5e1627a64b770da0d6a1ce65aacf34335214 (patch)
tree061bd4fa03c8c76eed3c3aa22d668caa8e16f142 /includes/sys_template.php
parent42144ed21cbc7361857b375d719ec53b24314546 (diff)
small code style improvements
Diffstat (limited to 'includes/sys_template.php')
-rw-r--r--includes/sys_template.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/sys_template.php b/includes/sys_template.php
index 2faf98c3..5b6caade 100644
--- a/includes/sys_template.php
+++ b/includes/sys_template.php
@@ -374,11 +374,11 @@ function render_table($columns, $rows, $data = true) {
foreach ($rows as $row) {
$html .= '<tr>';
foreach ($columns as $key => $column) {
+ $value = "&nbsp;";
if (isset($row[$key])) {
- $html .= '<td class="column_' . $key . '">' . $row[$key] . '</td>';
- } else {
- $html .= '<td class="column_' . $key . '">&nbsp;</td>';
+ $value = $row[$key];
}
+ $html .= '<td class="column_' . $key . '">' . $value . '</td>';
}
$html .= '</tr>';
}