dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4eff3e
)
Follow-up r54966: more sanity checks
author
Aaron Schulz
<aaron@users.mediawiki.org>
Thu, 13 Aug 2009 21:18:37 +0000
(21:18 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Thu, 13 Aug 2009 21:18:37 +0000
(21:18 +0000)
includes/Cdb.php
patch
|
blob
|
history
diff --git
a/includes/Cdb.php
b/includes/Cdb.php
index
e7c2c00
..
ab42987
100644
(file)
--- a/
includes/Cdb.php
+++ b/
includes/Cdb.php
@@
-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 );
}