]>
Commit | Line | Data |
---|---|---|
4d0e1f48 ER |
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) { |