]> git.pld-linux.org Git - packages/cacti.git/blame - cacti-ioerror.patch
make logrotate compatible with ac
[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
3@@ -437,6 +437,9 @@
4
5 if (file_exists($file_name)) {
6 $fp = fopen($file_name, "r");
7+ if (!$fp) {
8+ return $file_array;
9+ }
10
11 /* reset back the number of bytes */
12 if ($number_of_lines > 0) {
This page took 0.06287 seconds and 4 git commands to generate.