Index: trunk/phase3/includes/Cdb.php |
— | — | @@ -98,7 +98,8 @@ |
99 | 99 | } |
100 | 100 | |
101 | 101 | function close() { |
102 | | - dba_close( $this->handle ); |
| 102 | + if( isset($this->handle) ) |
| 103 | + dba_close( $this->handle ); |
103 | 104 | unset( $this->handle ); |
104 | 105 | } |
105 | 106 | |
— | — | @@ -128,7 +129,8 @@ |
129 | 130 | } |
130 | 131 | |
131 | 132 | function close() { |
132 | | - dba_close( $this->handle ); |
| 133 | + if( isset($this->handle) ) |
| 134 | + dba_close( $this->handle ); |
133 | 135 | if ( wfIsWindows() ) { |
134 | 136 | unlink( $this->realFileName ); |
135 | 137 | } |