}
function close() {
- fclose( $this->handle );
+ if( isset($this->handle) )
+ fclose( $this->handle );
unset( $this->handle );
}
public function close() {
$this->finish();
- fclose( $this->handle );
+ if( isset($this->handle) )
+ fclose( $this->handle );
if ( wfIsWindows() && file_exists($this->realFileName) ) {
unlink( $this->realFileName );
}