use isActive

This commit is contained in:
Thomas Portelange 2024-07-11 17:12:15 +02:00 committed by GitHub
parent 722490c406
commit 1ba9f7b24a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -39,7 +39,7 @@ class SQLite3Query extends Query
public function __destruct()
{
if ($this->handle && $this->database->getSelectedDatabase()) {
if ($this->handle && $this->database->isActive()) {
$this->handle->finalize();
}
}