]>
Commit | Line | Data |
---|---|---|
dadb3e80 ER |
1 | --- cacti/lib/functions.php~ 2008-10-05 06:16:11.000000000 +0300 |
2 | +++ cacti/lib/functions.php 2008-10-05 06:16:13.069722888 +0300 | |
81fd7803 AM |
3 | @@ -690,6 +690,9 @@ function tail_file($file_name, $number_o |
4 | $filter = strtolower($filter); | |
dadb3e80 | 5 | |
81fd7803 AM |
6 | $fp = fopen($file_name, 'r'); |
7 | + if (!$fp) { | |
8 | + return array(); | |
9 | + } | |
dadb3e80 | 10 | |
81fd7803 AM |
11 | /* Count all lines in the logfile */ |
12 | $total_rows = 0; | |
13 |