Index: trunk/phase3/includes/Cdb_PHP.php |
— | — | @@ -102,7 +102,8 @@ |
103 | 103 | } |
104 | 104 | |
105 | 105 | function close() { |
106 | | - fclose( $this->handle ); |
| 106 | + if( isset($this->handle) ) |
| 107 | + fclose( $this->handle ); |
107 | 108 | unset( $this->handle ); |
108 | 109 | } |
109 | 110 | |
— | — | @@ -251,7 +252,8 @@ |
252 | 253 | |
253 | 254 | public function close() { |
254 | 255 | $this->finish(); |
255 | | - fclose( $this->handle ); |
| 256 | + if( isset($this->handle) ) |
| 257 | + fclose( $this->handle ); |
256 | 258 | if ( wfIsWindows() && file_exists($this->realFileName) ) { |
257 | 259 | unlink( $this->realFileName ); |
258 | 260 | } |