From 676f5e1627a64b770da0d6a1ce65aacf34335214 Mon Sep 17 00:00:00 2001 From: msquare Date: Tue, 4 Oct 2016 18:11:26 +0200 Subject: small code style improvements --- includes/sys_template.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'includes/sys_template.php') 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 .= ''; foreach ($columns as $key => $column) { + $value = " "; if (isset($row[$key])) { - $html .= '' . $row[$key] . ''; - } else { - $html .= ' '; + $value = $row[$key]; } + $html .= '' . $value . ''; } $html .= ''; } -- cgit v1.2.3-54-g00ecf