mirror of
https://github.com/silverstripe/silverstripe-sqlite3
synced 2024-10-22 17:05:37 +02:00
use isActive
This commit is contained in:
parent
722490c406
commit
1ba9f7b24a
@ -39,7 +39,7 @@ class SQLite3Query extends Query
|
|||||||
|
|
||||||
public function __destruct()
|
public function __destruct()
|
||||||
{
|
{
|
||||||
if ($this->handle && $this->database->getSelectedDatabase()) {
|
if ($this->handle && $this->database->isActive()) {
|
||||||
$this->handle->finalize();
|
$this->handle->finalize();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user