diff --git a/cc/manifest.php b/cc/manifest.php index e3293a6..cae222a 100644 --- a/cc/manifest.php +++ b/cc/manifest.php @@ -99,7 +99,7 @@ public function build_flat_file(){ } public function cleanup() { - if( isset($this->tmp_file) && get_resource_type($this->tmp_file) === 'file' ){ + if( isset($this->tmp_file) && file_exists($this->tmp_file) ){ unlink($this->tmp_file); } }