adding if is_resource check around fclose to prevent warnings
parent
5ccc8cd532
commit
4a09d9ec22
|
@ -149,7 +149,9 @@ class StatusUpdater {
|
||||||
$status = ($fp === false) ? false : true;
|
$status = ($fp === false) ? false : true;
|
||||||
$this->rtime = (microtime(true) - $starttime);
|
$this->rtime = (microtime(true) - $starttime);
|
||||||
|
|
||||||
fclose($fp);
|
if(is_resource) {
|
||||||
|
fclose($fp);
|
||||||
|
}
|
||||||
|
|
||||||
// check if server is available and rerun if asked.
|
// check if server is available and rerun if asked.
|
||||||
if(!$status && $run < $max_runs) {
|
if(!$status && $run < $max_runs) {
|
||||||
|
|
Loading…
Reference in New Issue