summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/diag_tables.php
diff options
context:
space:
mode:
authork-paulius <k.dash.paulius@gmail.com>2016-02-14 22:49:23 -0600
committerk-paulius <k.dash.paulius@gmail.com>2016-02-14 22:49:23 -0600
commit4027d64e6afceac9aee318aa213490e0597eb430 (patch)
tree80711683b94e7095fb3efd4eca628b1366e8b1e4 /src/usr/local/www/diag_tables.php
parentf3c1dfa70fba451c2d3aad3aeb0997b7cc1b619f (diff)
downloadpfsense-4027d64e6afceac9aee318aa213490e0597eb430.zip
pfsense-4027d64e6afceac9aee318aa213490e0597eb430.tar.gz
Only display the message if there are no entries in the table, do not display empty panel and table.
Diffstat (limited to 'src/usr/local/www/diag_tables.php')
-rw-r--r--src/usr/local/www/diag_tables.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/usr/local/www/diag_tables.php b/src/usr/local/www/diag_tables.php
index 8a160d3..520775d 100644
--- a/src/usr/local/www/diag_tables.php
+++ b/src/usr/local/www/diag_tables.php
@@ -208,6 +208,11 @@ events.push(function() {
//]]>
</script>
+<?php
+if (empty($entries)) {
+ print_info_box(gettext("No entries exist in this table."), 'warning', false);
+} else {
+?>
<div class="panel panel-default">
<div class="panel-heading"><h2 class="panel-title"><?=$displayname?></h2></div>
<div class="panel-body">
@@ -242,7 +247,6 @@ events.push(function() {
</div>
<?php
-if (empty($entries)) {
- print_info_box(gettext("No entries exist in this table."), 'warning', false);
}
+
include("foot.inc");
OpenPOWER on IntegriCloud