summaryrefslogtreecommitdiffstats
path: root/usr/local/www/widgets
diff options
context:
space:
mode:
authorN0YB <Al_Stu@Frontier.com>2014-02-13 21:19:06 -0800
committerN0YB <Al_Stu@Frontier.com>2014-02-13 21:19:06 -0800
commitc5523ea6e7c93733320d900151b2b51b6df2e914 (patch)
tree86ec9c698c36f7eb11f728350e0653a44aab5bc4 /usr/local/www/widgets
parent5833def1a5ccd4b625ff07349c4060a33772d897 (diff)
downloadpfsense-c5523ea6e7c93733320d900151b2b51b6df2e914.zip
pfsense-c5523ea6e7c93733320d900151b2b51b6df2e914.tar.gz
XHTML Compliance
Create an empty row in tbody when there are no firewall log entries displayed.
Diffstat (limited to 'usr/local/www/widgets')
-rw-r--r--usr/local/www/widgets/widgets/log.widget.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr/local/www/widgets/widgets/log.widget.php b/usr/local/www/widgets/widgets/log.widget.php
index c0682ba..eda3814 100644
--- a/usr/local/www/widgets/widgets/log.widget.php
+++ b/usr/local/www/widgets/widgets/log.widget.php
@@ -197,7 +197,14 @@ function format_log_line(row) {
$filterent['proto'] .= ":{$filterent['tcpflags']}";
?>
</tr>
- <?php endforeach; ?>
+ <?php
+ endforeach;
+ if ($rowIndex == 0) {
+ ?>
+ <tr><td></td></tr>
+ <?php
+ }
+ ?>
</tbody>
</table>
OpenPOWER on IntegriCloud