]> git.pld-linux.org Git - packages/cacti.git/blob - cacti-rrdresourcecheck.patch
- use require instead of include to make permission problems fatal
[packages/cacti.git] / cacti-rrdresourcecheck.patch
1 --- cacti/lib/rrd.php~  2008-10-07 19:32:18.000000000 +0300
2 +++ cacti/lib/rrd.php   2008-11-28 02:29:52.807698495 +0200
3 @@ -54,7 +54,9 @@
4  
5  function rrd_close($rrd_struc) {
6         /* close the rrdtool file descriptor */
7 -       pclose($rrd_struc["fd"]);
8 +       if (is_resource($rrd_struc["fd"])) {
9 +               pclose($rrd_struc["fd"]);
10 +       }
11  }
12  
13  function rrd_get_fd(&$rrd_struc, $fd_type) {
This page took 0.043455 seconds and 3 git commands to generate.