renderTableViewer(): quote the TD class value
authorDenis Ovsienko <denis@ovsienko.info>
Fri, 30 Nov 2018 20:29:31 +0000 (20:29 +0000)
committerDenis Ovsienko <denis@ovsienko.info>
Fri, 30 Nov 2018 20:30:42 +0000 (20:30 +0000)
This way specifying more than one class in the calling function isn't
more difficult than it should be.

[skip ci]

wwwroot/inc/interface.php

index 9ba2472..5112b8b 100644 (file)
@@ -6471,7 +6471,7 @@ function renderTableViewer ($columns, $rows, $params = NULL)
                        {
                                echo '<td';
                                if (array_key_exists ('td_class', $col))
-                                       echo ' class=' . $col['td_class'];
+                                       echo " class='{$col['td_class']}'";
                                echo '>';
                                $text = $row[$col['row_key']];
                                if (array_fetch ($col, 'td_escape', TRUE))