]> git.pld-linux.org Git - packages/cacti.git/blame - cacti-ioerror.patch
Up to 1.2.26
[packages/cacti.git] / cacti-ioerror.patch
CommitLineData
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
This page took 0.116733 seconds and 4 git commands to generate.