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
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"]);
13 function rrd_get_fd(&$rrd_struc, $fd_type) {