summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2015-11-02 14:12:42 +0000
committerTed Trask <ttrask01@yahoo.com>2015-11-02 14:12:42 +0000
commit2fce9663a29b493cf7b924af54ebe3c4a09544f9 (patch)
treee4190f61828bbc7aae7d419044ee2ce5481d4818
parentf1cfbeb73886f96449b74a79cde5f47b83783e89 (diff)
downloadacf-core-2fce9663a29b493cf7b924af54ebe3c4a09544f9.tar.bz2
acf-core-2fce9663a29b493cf7b924af54ebe3c4a09544f9.tar.xz
Fix bug if no files reported to logfile html view
-rw-r--r--app/logfile-html.lsp4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/logfile-html.lsp b/app/logfile-html.lsp
index 4299f8f..dfa9e51 100644
--- a/app/logfile-html.lsp
+++ b/app/logfile-html.lsp
@@ -26,6 +26,8 @@
clientdata.facility = nil
clientdata.filename = "/var/log/messages"
end
- viewlibrary.dispatch_component("alpine-baselayout/logfiles/view", clientdata)
+ if clientdata.filename and clientdata.filename ~= "" then
+ viewlibrary.dispatch_component("alpine-baselayout/logfiles/view", clientdata)
+ end
end
end %>