adding if is_resource check around fclose to prevent warnings

This commit is contained in:
Pepijn Over 2014-06-23 11:54:22 +02:00
parent 5ccc8cd532
commit 4a09d9ec22
1 changed files with 3 additions and 1 deletions

View File

@ -149,7 +149,9 @@ class StatusUpdater {
$status = ($fp === false) ? false : true;
$this->rtime = (microtime(true) - $starttime);
fclose($fp);
if(is_resource) {
fclose($fp);
}
// check if server is available and rerun if asked.
if(!$status && $run < $max_runs) {