@@ -189,6 +189,6 @@ Class VAT {
}
function __destruct() {
- curl_close($this->ch);
+ if ($this->ch) curl_close($this->ch);