mirror of
https://github.com/silverstripe/silverstripe-sqlite3
synced 2024-10-22 17:05:37 +02:00
Merge pull request #78 from lekoala/patch-4
Finalize only if db is available
This commit is contained in:
commit
1c81f6fe22
@ -39,7 +39,7 @@ class SQLite3Query extends Query
|
||||
|
||||
public function __destruct()
|
||||
{
|
||||
if ($this->handle) {
|
||||
if ($this->handle && $this->database->isActive()) {
|
||||
$this->handle->finalize();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user