Follow-up r54966: more sanity checks
This commit is contained in:
parent
d4eff3e382
commit
6dd212d5be
1 changed files with 4 additions and 2 deletions
|
|
@ -98,7 +98,8 @@ class CdbReader_DBA {
|
|||
}
|
||||
|
||||
function close() {
|
||||
dba_close( $this->handle );
|
||||
if( isset($this->handle) )
|
||||
dba_close( $this->handle );
|
||||
unset( $this->handle );
|
||||
}
|
||||
|
||||
|
|
@ -128,7 +129,8 @@ class CdbWriter_DBA {
|
|||
}
|
||||
|
||||
function close() {
|
||||
dba_close( $this->handle );
|
||||
if( isset($this->handle) )
|
||||
dba_close( $this->handle );
|
||||
if ( wfIsWindows() ) {
|
||||
unlink( $this->realFileName );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue