--- cacti/lib/functions.php~ 2008-10-05 06:16:11.000000000 +0300 +++ cacti/lib/functions.php 2008-10-05 06:16:13.069722888 +0300 @@ -690,6 +690,9 @@ function tail_file($file_name, $number_o $filter = strtolower($filter); $fp = fopen($file_name, 'r'); + if (!$fp) { + return array(); + } /* Count all lines in the logfile */ $total_rows = 0;