diff --git a/app/log_viewer/log_viewer.php b/app/log_viewer/log_viewer.php
index b2bba9aaac..02fff7fb1a 100644
--- a/app/log_viewer/log_viewer.php
+++ b/app/log_viewer/log_viewer.php
@@ -94,7 +94,7 @@
}
}
if (isset($filename) && file_exists($filename)) {
- session_cache_limiter('public');
+ @session_cache_limiter('public');
$fd = fopen($filename, "rb");
header("Content-Type: binary/octet-stream");
header("Content-Length: " . filesize($filename));
@@ -320,7 +320,7 @@
else {
$adj_index = 1;
}
- if (is_array($array_output)) {
+ if (!empty($array_output) && is_array($array_output)) {
foreach ($array_output as $index => $line) {
$line_num = "";
if ($line != "
") {
@@ -346,4 +346,4 @@
fclose($file);
}
-?>
+?>
\ No newline at end of file